Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
114 lines (108 loc) · 2.68 KB
/
Copy pathcompose.yml
File metadata and controls
114 lines (108 loc) · 2.68 KB
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
services:
anmal:
build:
context: .
args:
REACT_APP_RECAPTCHA_PUBLIC_KEY: bingus
target: dev
ports:
- 8080:8080
environment:
PORT: 8080
DATABASE_URL: postgres://jml:jml@localhost:5432/jml
LOGIN_API_KEY: aaaa
OIDC_CLIENT_ID: client-id
OIDC_CLIENT_SECRET: client-secret
OIDC_ISSUER: http://localhost:7003
REDIRECT_URL: http://localhost:8080/oidc/callback
SESSION_SECRET: big_random_grej
SPAM_API_KEY: aaaa
RECAPTCHA_SECRET_KEY: yeet
SPAM_API_URL: https://spam.datasektionen.se/api
GOOGLE_RECAPTCHA_API_URL: https://www.google.com/recaptcha/api/siteverify
depends_on:
db:
condition: service_healthy
develop:
watch:
- action: sync
path: .
target: /app
- action: rebuild
path: package.json
network_mode: "host"
db:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=jml
- POSTGRES_USER=jml
- POSTGRES_DB=jml
healthcheck:
test:
- "CMD-SHELL"
- "sh -c 'pg_isready -d jml -U jml'"
interval: 1s
timeout: 5s
retries: 5
start_period: 10s
nyckeln:
image: ghcr.io/datasektionen/nyckeln-under-dorrmattan:latest
configs:
- source: nyckeln.yaml
target: /config.yaml
ports:
- 7001:7001
- 7002:7002
- 7003:7003
- 7004:7004
configs:
nyckeln.yaml:
content: |
clients:
- id: "client-id"
secret: "client-secret"
redirect_uris:
- "http://localhost:8080/oidc/callback"
users:
- ug_kth_id: some-id
kth_id: turetek
email: turetek@kth.se
first_name: Ture
family_name: Teknolog
year_tag: D-00
hive_tags:
- id: personal_email
content: turetek@gmail.com
- ug_kth_id: schmunguss
kth_id: schmunguss
email: schmunguss@kth.se
first_name: Schmun
family_name: Guss
year_tag: D-69
hive:
groups:
- name: Jämlikhets-, Mångfalds- och Likabehandlingsansvarig
id: jmla
domain: example.com
members:
- turetek
tags:
- id: mandate
permissions:
- id: admin
scope: null
nginx.conf:
content: |
server {
listen 8000;
server_name localhost;
access_log /dev/null main;
location /api {
proxy_pass http://anmal:8001/api;
}
location / {
proxy_pass http://anmal:8002;
}
}