-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 1.39 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
version: '3.6'
services:
httpd:
image: reflector-oidc:1
volumes:
- ${PWD}/public-html:/var/www/html
- ${PWD}/src/oidc-apache-site.conf:/etc/apache2/sites-available/oidc-apache-site.conf
- ${PWD}/src/auth_openidc.conf:/etc/apache2/mods-available/auth_openidc.conf
- ${PWD}/src/security.conf:/etc/apache2/conf-available/security.conf
- ${PWD}/logs:/var/log/apache2/
- ${PWD}/letsencrypt/certs/${APACHE_FQDN}.crt:/etc/ssl/certs/server.crt
- ${PWD}/letsencrypt/private/${APACHE_FQDN}.key:/etc/ssl/private/server.key
- ${PWD}/src/other-vhosts-access-log.conf:/etc/apache2/conf-available/other-vhosts-access-log.conf
networks:
- traefik-public
deploy:
replicas: 1
labels:
- traefik.enable=true
- traefik.http.routers.httpd-oidc.rule=Host(`${APACHE_FQDN}`)
- traefik.http.routers.httpd-oidc.entrypoints=websecure
- traefik.http.services.httpd-oidc.loadbalancer.server.port=443
- traefik.http.services.httpd-oidc.loadbalancer.server.scheme=https
- traefik.http.services.httpd-oidc.loadbalancer.passhostheader=true
- traefik.http.routers.httpd-oidc.tls=true
- traefik.http.routers.httpd-oidc.tls.certresolver=letsencrypt
- traefik.http.middlewares.httpd-oidc.headers.sslredirect=true
- traefik.docker.network=traefik-public
networks:
traefik-public:
external: true