Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
77 lines (71 loc) · 1.77 KB
/
Copy pathcompose.yaml
File metadata and controls
77 lines (71 loc) · 1.77 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
services:
yoggi:
build:
dockerfile: ./Dockerfile.dev
ports:
- 8000:8000
environment:
- OIDC_PROVIDER=http://nyckeln:7003
- OIDC_ID=client-id-hi
- OIDC_SECRET=client-secret-hi
- REDIRECT_URL=http://localhost:8000
- JWT_SECRET=jwt-secret
- PORT=8000
- S3_BUCKET=dsekt-assets
- AWS_SECRET_ACCESS_KEY=aaaa
- AWS_ACCESS_KEY_ID=aaaa
# Makes python prints appear properly in the container logs.
- PYTHONUNBUFFERED=TRUE
configs:
- source: nginx.conf
target: /etc/nginx/nginx.conf
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:
nginx.conf:
content: |
events {}
http {
server {
listen 7003;
location / {
proxy_pass http://nyckeln:7003;
}
}
}
nyckeln.yaml:
content: |
clients:
- id: "client-id-hi" # use this in your oidc client
secret: "client-secret-hi" # use this in your oidc client
redirect_uris: # URIs of your oidc client
[
http://localhost:8000,
]
users:
- ug_kth_id: some-id
kth_id: turetek
email: turetek@kth.se
first_name: Ture
family_name: Teknolog
hive_tags:
- id: personal_email
content: turetek@gmail.com
hive:
groups:
- name: Systemansvarig
id: d-sys
domain: example.com
members:
- turetek
permissions:
- id: access
scope: '*'