-
Notifications
You must be signed in to change notification settings - Fork 69
/
docker-compose.yml
59 lines (54 loc) · 1.48 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
version: '3'
volumes:
postgresdata:
services:
postgres:
image: docker.io/postgres:9.6-alpine
volumes:
- postgresdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: myactiveworkflowpassword
POSTGRES_USER: active_workflow
ports:
- 5432:5432
active_workflow_web:
image: docker.io/automaticmode/active_workflow:0.9.17
env_file:
- .env
environment:
RAILS_ENV: 'production'
DATABASE_HOST: 'postgres'
DATABASE_NAME: 'active_workflow'
DATABASE_USERNAME: 'active_workflow'
DATABASE_PASSWORD: 'myactiveworkflowpassword'
ports:
- 3000:3000
links:
- postgres
command: /scripts/init
active_workflow_scheduler:
image: docker.io/automaticmode/active_workflow:0.9.17
env_file:
- .env
environment:
RAILS_ENV: 'production'
DATABASE_HOST: 'postgres'
DATABASE_NAME: 'active_workflow'
DATABASE_USERNAME: 'active_workflow'
DATABASE_PASSWORD: 'myactiveworkflowpassword'
links:
- postgres
command: bundle exec rails runner bin/scheduler.rb
active_workflow_worker:
image: docker.io/automaticmode/active_workflow:0.9.17
env_file:
- .env
environment:
RAILS_ENV: 'production'
DATABASE_HOST: 'postgres'
DATABASE_NAME: 'active_workflow'
DATABASE_USERNAME: 'active_workflow'
DATABASE_PASSWORD: 'myactiveworkflowpassword'
links:
- postgres
command: bundle exec script/delayed_job -n 2 run