-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
46 lines (43 loc) · 984 Bytes
/
docker-compose.yaml
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
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
# - "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
# - ./ssl:/etc/ssl:ro # Mount your SSL certificates here
depends_on:
- oauth2-proxy
- webhosting
networks:
- frontend
- backend
oauth2-proxy:
image: quay.io/oauth2-proxy/oauth2-proxy:v7.4.0
volumes:
- ./oauth2-proxy.conf:/etc/oauth2-proxy/oauth2-proxy.conf
environment:
- OAUTH2_PROXY_CLIENT_ID=${GITHUB_CLIENT_ID}
- OAUTH2_PROXY_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- OAUTH2_PROXY_COOKIE_SECRET=${OAUTH2_PROXY_COOKIE_SECRET}
command:
- --email-domain=*
ports:
- "4180:4180"
networks:
- frontend
- backend
webhosting:
build: ./webhosting
ports:
- "8000:8000"
networks:
- backend
volumes:
- ./web-root:/web-root
networks:
frontend:
driver: bridge
backend:
driver: bridge