-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwith-omgwtfssl.yml
41 lines (38 loc) · 1.28 KB
/
with-omgwtfssl.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
version: '3.5'
services:
traefik:
command:
# we need that file to set the certificate path to the one generated by omgwtfssl
- "--providers.file.filename=/etc/traefik/traefik.config.toml"
# because f***ing docker compose doesn't merge the command
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--global.sendAnonymousUsage=false"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.gitea-ssh.address=:22"
- "--metrics.influxdb=${MON_TRAEFIK-false}"
- "--metrics.influxdb.address=http://172.20.0.1:8186" # TODO change to host.docker.internal when https://github.com/docker/for-linux/issues/264 is solved
- "--metrics.influxdb.protocol=http"
volumes:
- ${PWD}/traefik.config.toml:/etc/traefik/traefik.config.toml
- certs:/etc/certs:ro
depends_on:
- omgwtfssl
omgwtfssl:
image: omgwtfssl
restart: "no"
volumes:
- certs:/certs
environment:
- SSL_SUBJECT=${DOMAIN}
- SSL_KEY=/certs/default.key
- SSL_CSR=/certs/default.csr
- SSL_CERT=/certs/default.crt
networks:
- proxy-tier
volumes:
certs: