2020-10-22 18:44:24 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
laserrdb:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
env_file: .env
|
|
|
|
image: redis:6-alpine
|
|
|
|
volumes:
|
|
|
|
- laserrdb:/var/lib/redis
|
2020-11-01 22:09:28 +00:00
|
|
|
command: ["redis-server", "--appendonly", "yes"]
|
|
|
|
|
2020-10-22 18:44:24 +00:00
|
|
|
|
|
|
|
app:
|
|
|
|
env_file: .env
|
2020-11-05 15:50:20 +00:00
|
|
|
build: ../
|
2020-10-22 18:44:24 +00:00
|
|
|
image: teamlaser/laser-app:latest
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
depends_on:
|
|
|
|
- db
|
2020-11-05 15:50:20 +00:00
|
|
|
command: python /opt/server.py
|
2020-10-22 18:44:24 +00:00
|
|
|
|
|
|
|
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;'
|
2021-10-24 19:06:49 +00:00
|
|
|
volumes:
|
|
|
|
- ${PWD}/files/nginx/sites-enabled:/etc/nginx/sites-enabled
|
2020-10-22 18:44:24 +00:00
|
|
|
|
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
|
|
|
|