-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.61 KB
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
#version: "3.9"
services:
app:
#container_name: rems_app
image: cscfi/rems:latest
depends_on:
db:
condition: service_started
jwk-generator:
condition: service_completed_successfully
ports:
- "127.0.0.1:3000:3000"
volumes:
- ./config.edn:/rems/config/config.edn
- ./styles.css:/rems/theme/styles.css
- ./theme.edn:/rems/theme/theme.edn
- ./en.edn:/rems/theme/extra-translations/en.edn
- ./logo_medium.png:/rems/theme/public/img/logo_medium.png
- ./logo_small.png:/rems/theme/public/img/logo_small.png
- ./ls_login.png:/rems/theme/public/img/ls_login.png
- credentials:/rems/keys/ # jwks
networks:
- default
- tre-core
db:
#container_name: rems_db
image: postgres:13
environment:
POSTGRES_DB: rems
POSTGRES_USER: rems
POSTGRES_PASSWORD: remspassword
#ports:
# - "127.0.0.1:5432:5432"
# remove this if you don't want a persistent database
volumes:
- remsdb:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD",
"pg_isready",
"-h",
"localhost",
"-U",
"rems"
]
interval: 10s
timeout: 10s
retries: 3
start_period: 10s
jwk-generator:
build: ./images/jwk-generator
volumes:
- credentials:/app/jwk
- ./images/jwk-generator/generate_jwks.py:/app/generate_jwks.py
- ./images/jwk-generator/generate_api_key.py:/app/generate_api_key.py
#command: "sleep 1000"
#networks:
#tre-core:
volumes:
credentials:
remsdb:
driver: local