Initial commit: Schedule service for son
This commit is contained in:
commit
af2ea7be06
19 changed files with 2270 additions and 0 deletions
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
services:
|
||||
backend:
|
||||
build: .
|
||||
ports:
|
||||
- "8123:8000"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./backend:/app/backend
|
||||
- ./frontend:/app/frontend
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Europe/London
|
||||
- DATABASE_PATH=/app/data/schedule.db
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- init-db
|
||||
|
||||
init-db:
|
||||
image: alpine:latest
|
||||
volumes:
|
||||
- ./data:/data
|
||||
command: sh -c "mkdir -p /data && touch /data/.gitkeep"
|
||||
restart: "no"
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
driver: local
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue