-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
64 lines (62 loc) · 1.67 KB
/
docker-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
# SPDX-FileCopyrightText: 2019-2020 Magenta ApS
# SPDX-License-Identifier: MPL-2.0
version: "3.9"
services:
sd_changed_at:
build:
context: .
environment:
ENVIRONMENT: "development"
SD_GLOBAL_FROM_DATE: "2022-01-01"
SD_INSTITUTION_IDENTIFIER: MA
SD_PASSWORD: password1
SD_USER: SYMAGENTA
SD_JOB_FUNCTION: JobPositionIdentifier
SD_MONTHLY_HOURLY_DIVIDE: 9000
SD_IMPORT_RUN_DB: /app/rundb.sqlite3
MUNICIPALITY_CODE: 123
MUNICIPALITY_NAME: "MAGENTA KOMMUNE"
MORA_BASE: http://mo
CLIENT_ID: "dipex"
CLIENT_SECRET: "603f1c82-d012-4d04-9382-dbe659c533fb"
AUTH_SERVER: "http://keycloak:8080/auth"
APP_DBPASSWORD: super_secret_sd_payload_password
depends_on:
sd-db-init:
condition: service_completed_successfully
networks:
- os2mo_default
ports:
- 8000:8000/tcp
volumes:
- ./:/app/
sd-db:
image: postgres:11.7 # Set image in global.sls
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
networks:
os2mo_default:
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
timeout: 5s
retries: 3
start_period: 30s
sd-db-init:
image: magentaaps/postgres-keycloak-init:12.7-11.7 # Set image in global.sls
environment:
POSTGRES_HOST: sd-db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secret
KEYCLOAK_DB_NAME: sd
KEYCLOAK_DB_USER: sd
KEYCLOAK_DB_PASSWORD: super_secret_sd_payload_password
networks:
os2mo_default:
depends_on:
sd-db:
condition: service_healthy
networks:
os2mo_default:
external: true