-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
112 lines (106 loc) · 3.41 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
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
# version is now using "compose spec"
# v2 and v3 are now combined!
# docker-compose v1.27+ require
version: '2'
services:
sleutelkastje:
environment:
DATABASE_HOST: "db"
DATABASE_USER: "test"
DATABASE_PASSWORD: "test"
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: "https://sleutelkast.sd.di.huc.knaw.nl"
labels:
- "traefik.enable=true"
- "traefik.http.routers.sleutelkast.entrypoints=http"
- "traefik.http.routers.sleutelkast.rule=(Host(`sleutelkast.sd.di.huc.knaw.nl`) && (PathPrefix(`/api`) || PathPrefix(`/oidc`) || PathPrefix(`/test`)))"
image: registry.diginfra.net/tsd/sleutelkastje:latest
ports:
- "3010:5000"
depends_on:
- db
networks:
- sleutelkast_network
sk-frontend:
build: frontend
restart: unless-stopped
ports:
- "3020:80"
environment:
VITE_API_BASE: "https://sleutelkast.sd.di.huc.knaw.nl"
labels:
- "traefik.enable=true"
- "traefik.http.routers.sk-frontend.entrypoints=http"
- "traefik.http.routers.sk-frontend.rule=Host(`sleutelkast.sd.di.huc.knaw.nl`)"
networks:
- sleutelkast_network
sk-docs:
build:
context: .
dockerfile: Dockerfile-docs
ports:
- "3021:80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.sk-docs.entrypoints=http"
- "traefik.http.routers.sk-docs.rule=(Host(`sleutelkast.sd.di.huc.knaw.nl`) && PathPrefix(`/docs`))"
- "traefik.http.middlewares.sk-docs-stripprefix.stripprefix.prefixes=/docs"
- "traefik.http.routers.sk-docs.middlewares=sk-docs-stripprefix"
networks:
- sleutelkast_network
todo:
environment:
VIRTUAL_HOST: "todo.sd.di.huc.knaw.nl"
APP_DOMAIN: "https://todo.sd.di.huc.knaw.nl"
OIDC_SERVER: "https://testauthentication.di.huc.knaw.nl"
OIDC_CLIENT_ID: "nl_knaw_huc_di_sd_todo"
OIDC_CLIENT_SECRET: "5RKBN2siBqLq9MUHXlKZ"
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
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
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:9000"
networks:
- sleutelkast_network
db:
build:
context: .
dockerfile: Dockerfile-psql
environment:
POSTGRES_USER: "test"
POSTGRES_PASSWORD: "test"
POSTGRES_DB: "sleutelkastje"
ports:
- "5454:5432"
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- sleutelkast_network
volumes:
db-data:
networks:
sleutelkast_network:
external: true
name: traefik-public