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