mirror of
https://github.com/Solo-Web-Works/BillTrak.git
synced 2026-01-29 09:50:34 +00:00
✨feature: Docker initial start
This commit is contained in:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
app:
|
||||
container_name: BillTrak
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
# depends_on:
|
||||
# - redis
|
||||
|
||||
# environment:
|
||||
# - REDIS_HOST=redis
|
||||
# - REDIS_PORT=6379
|
||||
|
||||
ports:
|
||||
- "8888:80" # Map port 8080 on the host to port 80 in the container
|
||||
|
||||
volumes:
|
||||
- .:/var/www/html # Mount the current directory for live development
|
||||
- ./data/bills.db:/var/www/html/data/bills.db # Persist SQLite data
|
||||
|
||||
# redis:
|
||||
# container_name: redis
|
||||
# restart: unless-stopped
|
||||
# image: redis:latest
|
||||
|
||||
# ports:
|
||||
# - "6379:6379"
|
||||
Reference in New Issue
Block a user