-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
97 lines (97 loc) · 2.43 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
web:
build: .
volumes:
- ./:/app
working_dir: /app
platform: linux/amd64
depends_on:
- solr
- suri
- workflow
- redis
- workers
- db
ports:
- 3000:3000
environment:
DATABASE_NAME: dor_services
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
RAILS_LOG_TO_STDOUT: 'true'
REDIS_URL: redis://redis:6379/
# We don't actually use this anywhere but the rails server needs it in production env
SECRET_KEY_BASE: 1
SOLR_URL: http://solr:8983/solr/dorservices
SETTINGS__REDIS_URL: redis://redis:6379/
SETTINGS__SOLR__URL: http://solr:8983/solr/dorservices
SETTINGS__SURI__URL: http://suri:3000
SETTINGS__WORKFLOW__URL: http://workflow:3000
workers:
build: .
volumes:
- ./:/app
working_dir: /app
platform: linux/amd64
command: bundle exec sidekiq
depends_on:
- redis
environment:
REDIS_URL: redis://redis:6379/
SOLR_URL: http://solr:8983/solr/dorservices
SETTINGS__REDIS_URL: redis://redis:6379/
SETTINGS__SOLR__URL: http://solr:8983/solr/dorservices
SETTINGS__SURI__URL: http://suri:3000
SETTINGS__WORKFLOW__URL: http://workflow:3000
# We don't actually use this anywhere but the rails server needs it in production env
SECRET_KEY_BASE: 1
redis:
image: redis
ports:
- 6379:6379
solr:
image: solr:8.11.2
volumes:
- ./solr_conf/conf/:/myconfig
command: solr-create -c dorservices -d /myconfig
ports:
- 8984:8983
suri:
image: suldlss/suri-rails:latest
platform: linux/amd64
ports:
- 3002:3000
depends_on:
- db
environment:
DATABASE_NAME: suri
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
workflow:
image: suldlss/workflow-server:latest
platform: linux/amd64
depends_on:
- db
ports:
- 3001:3000
environment:
DATABASE_NAME: workflow-server
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
SETTINGS__REDIS__HOSTNAME: redis
db:
image: postgres:13
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=sekret
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data: