28 lines
568 B
YAML
28 lines
568 B
YAML
services:
|
|
web:
|
|
build: .
|
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- game-data:/app/data
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- DATABASE_URL=sqlite:////app/data/guesstheral.db
|
|
restart: unless-stopped
|
|
|
|
worker:
|
|
build: .
|
|
command: python -m app.worker
|
|
volumes:
|
|
- game-data:/app/data
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- DATABASE_URL=sqlite:////app/data/guesstheral.db
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
game-data:
|