-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
53 lines (51 loc) · 1.4 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
services:
# PostgreSQL DB for custom query and value set storage
db:
image: "postgres:alpine"
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=pw
- POSTGRES_DB=tefca_db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 5s
retries: 20
# Keycloak for authentication
keycloak:
build:
context: .
dockerfile: Dockerfile.keycloak
ports:
- 8080:8080
restart: always
command:
- start-dev
- --import-realm
# Next.js app with Flyway
query-connector:
build:
context: .
dockerfile: Dockerfile
tty: true
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- AUTH_DISABLED=false
- AUTH_SECRET="ido5D/uybeAB3AmMQwn+ubw2zYC4t2h7RJlW2R79598="
- AUTH_URL=http://localhost:3000
- LOCAL_KEYCLOAK=http://localhost:8080
- NAMED_KEYCLOAK=http://keycloak:8080
- AUTH_KEYCLOAK_ID=query-connector
- AUTH_KEYCLOAK_SECRET=ZG3f7R1J3qIwBaw8QtttJnJMinpERQKs
- DATABASE_URL=postgres://postgres:pw@db:5432/tefca_db
# Note: you must have a local .env file with the ERSD_API_KEY set to a key
# obtained from the ERSD API at https://ersd.aimsplatform.org/#/api-keys
depends_on:
db:
condition: service_healthy
keycloak:
condition: service_started