snap2laz/server/docker-compose.yml

43 lines
749 B
YAML
Raw Normal View History

version: '2'
volumes:
laserrdb:
external: true
services:
db:
env_file: .env
image: redis:6-alpine
volumes:
- laserrdb:/var/lib/redis
command: ["redis-server", "--appendonly", "yes"]
app:
env_file: .env
2020-11-05 15:50:20 +00:00
build: ../
image: teamlaser/laser-app:latest
ports:
- "5000:5000"
depends_on:
- db
2020-11-05 15:50:20 +00:00
command: python /opt/server.py
assets:
env_file: .env
image: teamlaser/laser-app:latest
ports:
- "8080:80"
depends_on:
- app
command: nginx -g 'daemon off;error_log /dev/stdout info;'
2020-10-22 19:16:30 +00:00
worker:
env_file: .env
image: teamlaser/laser-app:latest
depends_on:
- db
2020-11-05 15:50:20 +00:00
command: bash -c "while true; do python /opt/worker.py; sleep 3; done"
2020-10-22 19:16:30 +00:00