contentdb/docker-compose.yml

63 lines
1.2 KiB
YAML
Raw Normal View History

2019-01-09 21:58:11 +00:00
version: '3'
services:
db:
image: "postgres:9.6.5"
volumes:
- "./data/db:/var/lib/postgresql/data"
env_file:
2019-01-09 22:29:05 +00:00
- config.env
redis:
image: 'redis:3.0-alpine'
command: redis-server
volumes:
- './data/redis:/data'
2019-01-09 21:58:11 +00:00
app:
build: .
2019-11-21 23:16:39 +00:00
command: ./utils/entrypoint.sh
env_file:
- config.env
2019-01-09 21:58:11 +00:00
ports:
- 5123:5123
volumes:
2020-01-18 01:20:32 +00:00
- "./data/uploads:/var/cdb/uploads"
- "./app:/source/app"
- "./migrations:/source/migrations"
2019-01-09 21:58:11 +00:00
depends_on:
- db
2019-01-09 22:29:05 +00:00
- redis
2019-01-09 21:58:11 +00:00
2019-01-09 22:29:05 +00:00
worker:
build: .
command: celery -A app.tasks.celery worker
2019-01-09 22:29:05 +00:00
env_file:
- config.env
environment:
- FLASK_CONFIG=../config.cfg
2019-01-09 22:29:05 +00:00
volumes:
2020-01-18 01:20:32 +00:00
- "./data/uploads:/var/cdb/uploads"
- "./app:/home/cdb/app"
2019-01-09 22:29:05 +00:00
depends_on:
- redis
beat:
build: .
command: celery -A app.tasks.celery beat
env_file:
- config.env
environment:
- FLASK_CONFIG=../config.cfg
depends_on:
- redis
flower:
image: mher/flower
command: ["flower", "--broker=redis://redis:6379/0", "--port=5124"]
env_file:
- config.env
ports:
- 5124:5124
depends_on:
- redis