2019-01-09 22:58:11 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: "postgres:9.6.5"
|
|
|
|
volumes:
|
|
|
|
- "./data/db:/var/lib/postgresql/data"
|
|
|
|
env_file:
|
2019-01-09 23:29:05 +01:00
|
|
|
- config.env
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: 'redis:3.0-alpine'
|
|
|
|
command: redis-server
|
|
|
|
volumes:
|
|
|
|
- './data/redis:/data'
|
2019-01-09 22:58:11 +01:00
|
|
|
|
|
|
|
app:
|
|
|
|
build: .
|
2019-11-14 23:24:37 +01:00
|
|
|
command: ./utils/run.sh
|
|
|
|
env_file:
|
|
|
|
- config.env
|
2019-01-09 22:58:11 +01:00
|
|
|
ports:
|
|
|
|
- 5123:5123
|
|
|
|
volumes:
|
2019-01-09 23:29:05 +01:00
|
|
|
- "./data/uploads:/home/cdb/app/public/uploads"
|
2019-01-28 20:01:37 +01:00
|
|
|
- "./app:/home/cdb/app"
|
2019-01-28 21:48:07 +01:00
|
|
|
- "./migrations:/home/cdb/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:
|
|
|
|
- "./data/uploads:/home/cdb/app/public/uploads"
|
2019-09-03 01:42:51 +02:00
|
|
|
- "./app:/home/cdb/app"
|
2019-01-09 23:29:05 +01:00
|
|
|
depends_on:
|
|
|
|
- redis
|