-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
52 lines (49 loc) · 1.25 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
version: "3.9"
services:
app:
container_name: rems_app
image: cscfi/rems:latest
depends_on:
db:
condition: service_started
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
- ./private-key.jwk:/rems/keys/private-key.jwk
- ./public-key.jwk:/rems/keys/public-key.jwk
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
volumes:
remsdb:
driver: local