-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcompose.yaml
155 lines (145 loc) · 4.81 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: 'argo'
services:
web:
build: .
volumes:
- ./:/app
- node_modules:/app/node_modules
working_dir: /app
ports:
- 3000:3000
environment:
NODE_ENV: development
RAILS_LOG_TO_STDOUT: 'true'
REMOTE_USER: [email protected]
ROLES: sdr:administrator-role;sdr:service-manager
# Allow bulk action logs to be written (can't write to /tmp)
SETTINGS__BULK_METADATA__DIRECTORY: '/app/tmp'
SETTINGS__BULK_METADATA__TEMPORARY_DIRECTORY: '/app/tmp/tmp'
# To generate the token: docker-compose run dor-services-app rake generate_token
SETTINGS__DOR_SERVICES__TOKEN: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJGb28ifQ.-BVfLTW9Q1_ZQEsGv4tuzGLs5rESN7LgdtEwUltnKv4
SETTINGS__DOR_SERVICES__URL: http://dor-services-app:3000
SETTINGS__REDIS_URL: redis://redis:6379/
SETTINGS__SOLRIZER_URL: http://solr:8983/solr/argo
SETTINGS__WORKFLOW_URL: http://workflow:3000
SETTINGS__TECH_MD_SERVICE__URL: http://techmd:3000
SETTINGS__VERSION_SERVICE__SYNC_WITH_PRESERVATION: false
SOLR_URL: http://solr:8983/solr/argo
# Docker doesn't allow rails server to remove PID on shutdown
PID_FILE: /dev/null
# To allow yarn --watch from Procfile.dev to continue after stdin is closed
tty: true
dor-services-app:
image: suldlss/dor-services-app:latest
ports:
- 3003:3000
environment:
DATABASE_NAME: dor-services-app
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
RAILS_LOG_TO_STDOUT: 'true'
SECRET_KEY_BASE: 769171f88c527d564fb65b4b7ef712d5ae9761a21e26a41cd7c88eb0af89c74f857b9be4089119f71cf806dfc8bf9d9d2f0df91c00b119c96f462b46ebf43b0f
SOLR_URL: http://solr:8983/solr/argo
SETTINGS__ENABLED_FEATURES__CREATE_UR_ADMIN_POLICY: 'true'
SETTINGS__SOLR__URL: http://solr:8983/solr/argo
SETTINGS__SURI__URL: http://suri:3000
SETTINGS__WORKFLOW__URL: http://workflow:3000
SETTINGS__WORKFLOW__LOGFILE: rails
SETTINGS__RABBITMQ__ENABLED: 'false'
SETTINGS__VERSION_SERVICE__SYNC_WITH_PRESERVATION: 'false'
SETTINGS__REDIS_URL: redis://redis:6379/
depends_on:
- db
- suri
- redis
- solr
sdr-api:
image: suldlss/sdr-api:latest
ports:
- 3006:3000
environment:
DATABASE_NAME: sdr
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
RAILS_LOG_TO_STDOUT: 'true'
USER_EMAIL: [email protected]
USER_PASSWORD: notusedanywhere
SECRET_KEY_BASE: 769171f88c527d564fb65b4b7ef712d5ae9761a21e26a41cd7c88eb0af89c74f857b9be4089119f71cf806dfc8bf9d9d2f0df91c00b119c96f462b46ebf43b0f
SETTINGS__WORKFLOW__URL: http://workflow:3000
SETTINGS__DOR_SERVICES__URL: http://dor-services-app:3000/
# To generate the token: docker-compose run dor-services-app rake generate_token
SETTINGS__DOR_SERVICES__TOKEN: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJGb28ifQ.-BVfLTW9Q1_ZQEsGv4tuzGLs5rESN7LgdtEwUltnKv4
depends_on:
- db
- dor-services-app
solr:
image: solr:9.6.1
volumes:
- ./solr_conf/conf/:/myconfig
command: solr-create -c argo -d /myconfig
ports:
- 8983:8983
suri:
image: suldlss/suri-rails:latest
ports:
- 3002:3000
depends_on:
- db
environment:
DATABASE_NAME: suri
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
RAILS_LOG_TO_STDOUT: 'true'
db:
image: postgres:11 # aligns the pg version with what is supported by dor-services-app
environment:
- POSTGRES_PASSWORD=sekret
volumes:
- postgres-data:/var/lib/postgresql/data
workflow:
image: suldlss/workflow-server:latest
environment:
- RAILS_LOG_TO_STDOUT=true
- DATABASE_NAME=workflow-server
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=sekret
- DATABASE_HOSTNAME=db
- DATABASE_PORT=5432
- SETTINGS__DOR_SERVICES__URL=http://dor-services-app:3000
- SETTINGS__DOR_SERVICES__TOKEN=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJGb28ifQ.-BVfLTW9Q1_ZQEsGv4tuzGLs5rESN7LgdtEwUltnKv4
- SETTINGS__ENABLE_STOMP=false
- SETTINGS__REDIS__HOSTNAME=redis
- PAGER='more'
depends_on:
- db
- redis
ports:
- 3001:3000
techmd:
image: suldlss/technical-metadata-service:latest
environment:
DATABASE_NAME: technical_metadata
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: sekret
DATABASE_HOSTNAME: db
DATABASE_PORT: 5432
RAILS_LOG_TO_STDOUT: "true"
REDIS_URL: redis://redis:6379/
ports:
- 3005:3000
depends_on:
- db
- redis
redis:
image: redis
ports:
- 6379:6379
volumes:
node_modules:
postgres-data: