-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
96 lines (90 loc) · 2.74 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
services:
sleutelkastje:
environment:
DATABASE_HOST: "db"
DATABASE_USER: "test"
DATABASE_PASSWORD: "test"
# APP_DOMAIN: "http://localhost:3010"
APP_DOMAIN: "https://sleutelkast.sd.di.huc.knaw.nl"
OIDC_SERVER: "https://testauthentication.di.huc.knaw.nl"
OIDC_CLIENT_ID: "nl_knaw_huc_di_sd_sleutelkast"
OIDC_CLIENT_SECRET: "b47e55ae-4634-11ed-a804-5329bcd6a806"
FRONTEND_HOST: "http://localhost:5173"
# FRONTEND_HOST: "http://localhost:8090"
labels:
- "traefik.enable=true"
- "traefik.http.routers.sleutelkast.entrypoints=http"
- "traefik.http.routers.sleutelkast.rule=Host(`sleutelkast.sd.di.huc.knaw.nl`)"
build: .
restart: unless-stopped
ports:
- "3010:5000"
depends_on:
- db
networks:
- sleutelkast_network
# frontend:
# build: frontend
# restart: unless-stopped
# ports:
# - "8090:80"
todo:
environment:
VIRTUAL_HOST: "localhost:3011"
APP_DOMAIN: "http://localhost:3011"
OIDC_SERVER: "https://testauthentication.di.huc.knaw.nl"
OIDC_CLIENT_ID: "nl_knaw_huc_di_sd_todo"
OIDC_CLIENT_SECRET: "5RKBN2siBqLq9MUHXlKZ"
SK_API_KEY: "huc:)AsBWz}-s`buxM#68YB##Ogs-&pxdb*/Rg]5]PM+-Q>454*ok_Bar%~F9+kKjsns"
SK_DOMAIN: "http://sleutelkastje:5000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.sleutelkast-todo.entrypoints=http"
- "traefik.http.routers.sleutelkast-todo.rule=Host(`todo.sd.di.huc.knaw.nl`)"
build: ./todo
restart: unless-stopped
ports:
- "3011:5001"
networks:
- sleutelkast_network
todo-j:
environment:
VIRTUAL_HOST: "todo-j.sd.di.huc.knaw.nl"
APP_DOMAIN: "https://todo-j.sd.di.huc.knaw.nl"
OIDC_SERVER: "https://testauthentication.di.huc.knaw.nl"
OIDC_CLIENT_ID: "nl_knaw_huc_di_sd_todo-j"
OIDC_CLIENT_SECRET: "5RKBN2siBqLq9MUHXlKZ"
# image: registry.diginfra.net/tsd/sleutelkastje-todo-j:20240416
build: ./todo/java
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.sleutelkast-todo-j.entrypoints=http"
- "traefik.http.routers.sleutelkast-todo-j.rule=Host(`todo-j.sd.di.huc.knaw.nl`)"
# build: ./todo/java
ports:
- "3012:8000"
networks:
- sleutelkast_network
db:
build:
context: .
dockerfile: Dockerfile-psql
environment:
POSTGRES_USER: "test"
POSTGRES_PASSWORD: "test"
POSTGRES_DB: "sleutelkastje"
restart: unless-stopped
ports:
- "5454:5432"
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- sleutelkast_network
volumes:
db-data:
networks:
sleutelkast_network:
external: false
# external: true
# name: traefik-public