-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.42 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
version: '3.4'
services:
encoding_app:
image: data61/anonlink-encoding-service:latest
ports:
- "8000:8080"
environment:
- CLKHASH_SERVICE_DB_URI=postgresql://postgres:secret@postgres:5432/postgres
- CLKHASH_SERVICE_BROKER_URI=sqla+postgresql://postgres:secret@postgres:5432/postgres
entrypoint:
- waitress-serve
- --port=8080
- clkhash_service:connexion_app
depends_on:
- encoding_db_init
- postgres
encoding_worker:
image: data61/anonlink-encoding-service:latest
environment:
- CLKHASH_SERVICE_DB_URI=postgresql://postgres:secret@postgres:5432/postgres
- CLKHASH_SERVICE_BROKER_URI=sqla+postgresql://postgres:secret@postgres:5432/postgres
command:
- celery
- -A
- clkhash_worker
- worker
depends_on:
- encoding_db_init
- postgres
encoding_db_init:
image: data61/anonlink-encoding-service:latest
environment:
- CLKHASH_SERVICE_DB_URI=postgresql://postgres:secret@postgres:5432/postgres
entrypoint: /bin/sh -c "dockerize -wait tcp://postgres:5432 python3 database.py init"
depends_on:
- postgres
postgres:
image: "postgres:11"
restart: always
environment:
POSTGRES_PASSWORD: secret
volumes:
- psql:/var/lib/postgresql/data
healthcheck:
test: pg_isready -q -h db -p 5432 -U postgres
interval: 5s
timeout: 30s
retries: 5
volumes:
psql: