-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (63 loc) · 1.5 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '2'
services:
web:
restart: on-failure
build:
context: .
args:
POETRY_VERSION: 1.3.2
environment:
- REDIS=redis://redis:6379/0
- REDIS_CELERY=redis://redis:6379/1
- TZ=Europe/Prague
- DB=postgresql+psycopg2://postgres:example@db:5432/postgres
- COUCHDB=http://admin:password@couchdb:5984/
volumes:
- ./graphs.txt:/tmp/graphs.txt
command: gunicorn -w 4 -b 0.0.0.0:8000 --log-level debug --timeout 0 app:app
ports:
- "8088:8000"
depends_on:
- celery
- redis
- db
- couchdb
celery:
restart: always
build:
context: .
args:
POETRY_VERSION: 1.3.2
environment:
- REDIS=redis://redis:6379/0
- REDIS_CELERY=redis://redis:6379/1
- TZ=Europe/Prague
- DB=postgresql+psycopg2://postgres:example@db:5432/postgres
- COUCHDB=http://admin:password@couchdb:5984/
volumes:
- ./exclude.txt:/tmp/exclude.txt
command: celery -A tsa.celery worker -l debug -Q celery,celery:1,celery:2 --pool=gevent -c 60
depends_on:
- redis
- db
- couchdb
redis:
restart: on-failure
image: "redis:alpine"
ports:
- "6379:6379"
db:
image: postgres:14
restart: always
environment:
POSTGRES_PASSWORD: example
ports:
- "5432:5432"
couchdb:
image: apache/couchdb:3
restart: always
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=password
ports:
- "5984:5984"