-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.dev.yml
95 lines (88 loc) · 2.2 KB
/
docker-compose.dev.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
# Copyright © VNG Realisatie 2022
# Licensed under the EUPL
version: "3.7"
services:
postgres:
image: postgres:15.4-alpine
ports:
- 127.0.0.1:5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nlx
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/postgres-setup.sh:/docker-entrypoint-initdb.d/postgres-setup.sh
restart: on-failure
dex:
image: dexidp/dex:v2.35.3
command: dex serve /config.yaml
ports:
- 127.0.0.1:5556:5556
volumes:
- ./dex.dev.yaml:/config.yaml
restart: on-failure
proxy:
build:
context: ./sni-proxy
dockerfile: Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway" # Needed for Linux
volumes:
- ./sni-proxy/sniproxy.conf:/etc/sniproxy.conf:ro
ports:
- "80:80"
- "443:443"
- "8443:8443"
auth-inway-org-b:
build:
context: ./auth-opa
dockerfile: Dockerfile
ports:
- "127.0.0.1:8181:8181"
command:
- run
- --log-level
- debug
- -w
- --server
- --addr
- :8181
- --tls-ca-cert-file
- /pki/internal/organization-b/ca/intermediate.pem
- --tls-cert-file
- /pki/internal/organization-b/certs/auth/cert.pem
- --tls-private-key-file
- /pki/internal/organization-b/certs/auth/key.pem
- /rego
- /data
volumes:
- ./pki/internal/organization-b:/pki/internal/organization-b
restart: on-failure
auth-outway-org-c:
build:
context: ./auth-opa
dockerfile: Dockerfile
ports:
- "127.0.0.1:8182:8181"
command:
- run
- --log-level
- debug
- -w
- --server
- --addr
- :8181
- --tls-ca-cert-file
- /pki/internal/organization-c/ca/intermediate.pem
- --tls-cert-file
- /pki/internal/organization-c/certs/auth/cert.pem
- --tls-private-key-file
- /pki/internal/organization-c/certs/auth/key.pem
- /rego
- /data
volumes:
- ./pki/internal/organization-c:/pki/internal/organization-c
restart: on-failure
volumes:
postgres-data: