-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
69 lines (69 loc) · 1.62 KB
/
compose.yaml
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
64
65
66
67
68
69
services:
worker:
# supplies some tasks (sleep, die, maybe_die) for testing
build:
context: ../
dockerfile: tests/Dockerfile
environment:
- DATABASE_URL=postgres://postgres:test@postgres:5432/igor?sslmode=disable
- QUEUE_URL=redis:6379
depends_on:
- postgres
- redis
deploy:
mode: replicated
replicas: 1
apiserver:
# serves Igor's API over HTTP (currently the only method, but more can be supported)
build:
context: ../
dockerfile: Dockerfile
command: ["api"]
ports:
- "8100:8100"
environment:
- DATABASE_URL=postgres://postgres:test@postgres:5432/igor?sslmode=disable
- QUEUE_URL=redis:6379
- ADDR=0.0.0.0:8100
- DEBUG=true
depends_on:
- postgres
- redis
deploy:
mode: replicated
replicas: 1
igor:
# performs the inner logic of Igor, running background tasks, queuing tasks and generally managing things
build:
context: ../
dockerfile: Dockerfile
command: ["worker"]
environment:
- DATABASE_URL=postgres://postgres:test@postgres:5432/igor?sslmode=disable
- QUEUE_URL=redis:6379
- DEBUG=true
depends_on:
- postgres
- redis
deploy:
mode: replicated
replicas: 1
postgres:
image: "postgres:16"
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=test
redis:
image: "redis:alpine"
ports:
- "6379:6379"
asynqmon:
# ui for Async
image: "hibiken/asynqmon"
ports:
- "8080:8080"
environment:
- REDIS_ADDR=redis:6379
depends_on:
- redis