-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 945 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 945 Bytes
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
version: '3'
services:
postgres:
image: postgres:11-alpine
expose:
- 5432
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=dynflow
redis:
image: redis:5.0.5-alpine
expose:
- 6379
client: &common
build: .
depends_on:
- postgres
- redis
environment:
- REDIS_URL=redis://redis:6379/0
- REDIS_PROVIDER=REDIS_URL
- DB_CONN_STRING=postgresql://postgres:postgres@postgres:5432/dynflow
volumes:
- ./:/data
command: |
ruby ./examples/remote_executor.rb client
observer:
<<: *common
command: |
ruby ./examples/remote_executor.rb observer
ports:
- 4567:4567
orchestrator:
<<: *common
command: |
sidekiq -r ./examples/remote_executor.rb -q dynflow_orchestrator -c 1
worker:
<<: *common
command: |
sidekiq -r ./examples/remote_executor.rb -q default