2019-01-09 13:58:11 -08:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: "postgres:9.6.5"
|
|
|
|
volumes:
|
|
|
|
- "./data/db:/var/lib/postgresql/data"
|
|
|
|
env_file:
|
2019-01-09 14:29:05 -08:00
|
|
|
- config.env
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: 'redis:3.0-alpine'
|
|
|
|
command: redis-server
|
|
|
|
volumes:
|
|
|
|
- './data/redis:/data'
|
2019-01-09 13:58:11 -08:00
|
|
|
|
|
|
|
app:
|
|
|
|
build: .
|
2019-11-21 15:16:39 -08:00
|
|
|
command: ./utils/entrypoint.sh
|
2019-11-14 14:24:37 -08:00
|
|
|
env_file:
|
|
|
|
- config.env
|
2019-01-09 13:58:11 -08:00
|
|
|
ports:
|
|
|
|
- 5123:5123
|
|
|
|
volumes:
|
2020-01-17 17:20:32 -08:00
|
|
|
- "./data/uploads:/var/cdb/uploads"
|
2020-01-17 17:38:00 -08:00
|
|
|
- "./app:/source/app"
|
|
|
|
- "./migrations:/source/migrations"
|
2019-01-09 13:58:11 -08:00
|
|
|
depends_on:
|
|
|
|
- db
|
2019-01-09 14:29:05 -08:00
|
|
|
- redis
|
2019-01-09 13:58:11 -08:00
|
|
|
|
2019-01-09 14:29:05 -08:00
|
|
|
worker:
|
|
|
|
build: .
|
2019-11-14 14:42:49 -08:00
|
|
|
command: celery -A app.tasks.celery worker
|
2019-01-09 14:29:05 -08:00
|
|
|
env_file:
|
|
|
|
- config.env
|
2019-11-14 14:42:49 -08:00
|
|
|
environment:
|
|
|
|
- FLASK_CONFIG=../config.cfg
|
2019-01-09 14:29:05 -08:00
|
|
|
volumes:
|
2020-01-17 17:20:32 -08:00
|
|
|
- "./data/uploads:/var/cdb/uploads"
|
2020-01-17 17:38:00 -08:00
|
|
|
- "./app:/home/cdb/app"
|
2019-01-09 14:29:05 -08:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2019-11-18 14:39:01 -08:00
|
|
|
|
|
|
|
beat:
|
|
|
|
build: .
|
|
|
|
command: celery -A app.tasks.celery beat
|
|
|
|
env_file:
|
|
|
|
- config.env
|
|
|
|
environment:
|
|
|
|
- FLASK_CONFIG=../config.cfg
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
2020-04-23 16:49:40 -07:00
|
|
|
exporter:
|
|
|
|
image: ovalmoney/celery-exporter
|
|
|
|
env_file:
|
|
|
|
- config.env
|
|
|
|
ports:
|
|
|
|
- 5125:9540
|
|
|
|
depends_on:
|
|
|
|
- redis
|