-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
51 lines (48 loc) · 1.08 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
version: "3"
services:
postgres:
build:
context: .
dockerfile: postgres-dockerfile
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./data:/var/lib/postgresql/data
ports:
- "5432:5432"
scheduler:
build:
context: .
dockerfile: scheduler-dockerfile
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_HOST: postgres
ports:
- "8081:8081"
depends_on:
- postgres
coordinator:
build:
context: .
dockerfile: coordinator-dockerfile
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_HOST: postgres
ports:
- "8080:8080"
depends_on:
- postgres
worker:
build:
context: .
dockerfile: worker-dockerfile
environment:
WORKER_ADDRESS: worker
depends_on:
- coordinator