-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
executable file
·133 lines (124 loc) · 3.37 KB
/
docker-compose.local.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
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
version: "3.4"
services:
sap_api:
build:
context: ./web
target: final
environment:
# don't litter host with pyc files; we always want latest state from file
- PYTHONDONTWRITEBYTECODE=1
- MICROREACT_BASE_URL=https://dev2.sofi-platform.dk
user: ${CURRENT_UID}
volumes:
# Change path before : to point to local web.
- ./web:/app/web:ro
depends_on:
- "bifrost_db"
sap_broker_queue:
image: sekvensanalyseplatform/sap-queue-broker:437
depends_on:
- "sap_api"
- "bifrost_db"
bifrost_listener:
build:
context: ./bifrost/bifrost_listener
dockerfile: Dockerfile
depends_on:
- "bifrost_db"
sap_app:
build:
context: ./app
dockerfile: Dockerfile.dev
user: ${CURRENT_UID}
ports:
- "3333:3333"
environment:
- NODE_ENV=development
volumes:
- ./app:/app:rw
stdin_open: true
mocks:
image: caddy
volumes:
- ./openapi_specs/Caddyfile:/etc/caddy/Caddyfile
ports:
- "4099:4099"
depends_on:
- lims_mock
lims_mock:
container_name: lims_integration
image: stoplight/prism:latest
ports:
- "4021:4021"
command: mock /openapi_specs/lims.v1.yaml -h 0.0.0.0 -p 4021
volumes:
- ./openapi_specs:/openapi_specs
tbr_integration:
container_name: tbr_integration
build: ./sap_tbr_integration
environment:
ASPNETCORE_ENVIRONMENT: Development
ports:
- "5000:80"
- "5001:443"
bifrost_db:
image: mongo:7.0.11
command: --replSet rs0
container_name: bifrost_db
restart: always
user: ${CURRENT_UID}
environment:
MONGO_INITDB_DATABASE: bifrost_test
volumes:
- ./bifrost/bifrost_db/initdb.d/:/docker-entrypoint-initdb.d/
- ./bifrost/bifrost_db/data/db/:/data/db/
- ./bifrost/bifrost_db/data/log/:/var/log/mongodb/
ports:
- "27017:27017"
expose:
- 27017
extra_hosts:
- "bifrost_db:127.0.0.1"
healthcheck:
# causes replicaset to initialize as a side effect
test: 'test $$(mongo bifrost_test --eval "rs.status().ok" --quiet) -eq 1 -a $$(mongo bifrost_test --eval "rs.status().set" --quiet) = rs0'
interval: 60s
start_period: 15s
# Allows for testing email-based self-service flows in kratos (forgot password, account verification, etc)
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
microreact:
build:
context: ./microreact
dockerfile: Dockerfile
environment:
NODE_EXTRA_CA_CERTS: /etc/ssl/certs/ca-certificates.crt
NEXTAUTH_URL: https://dev2.sofi-platform.dk/
NEXTAUTH_URL_INTERNAL: http://microreact:3000/
LOGGER_FILENAME: microreactlogs
LOGGER_LEVEL: debug
LOGGER_DIR: /logs
CONFIG_FILE: /app/config.js
AUTH_SECRET: asdasdads
MONGODB_CONNECTION: mongodb://bifrost_db:27017/microreact
MONGODB_DATABASE: microreact
AUTH_WELLKNOWN_URI: https://dev.sofi-platform.dk/auth/realms/sofi
BASE_URL: https://dev2.sofi-platform.dk/
SMTP_HOST: mailhog
SMTP_PORT: 1025
SMTP_USER: user
SMTP_PASS: pass
SMTP_SECURE: "false"
ports:
- "3000:3000"
volumes:
- ./logs:/logs
- ./microreact_defaults.js:/app/config.js
- ./files/:/app/files/
depends_on:
- "bifrost_db"
- "mailhog"
- "keycloak"