-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
38 lines (35 loc) · 1.22 KB
/
docker-compose.prod.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
version: '3'
services:
reverse-proxy:
image: library/traefik:v2.4.5
restart: always
command:
# - "--log.level=DEBUG"
# - "--accessLog=true"
# - "--api.dashboard=true"
- "--entryPoints.web.address=:80"
- "--entryPoints.websecure.address=:443"
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.network=gateway"
- "--certificatesResolvers.myresolver.acme.httpchallenge=true"
- "--certificatesResolvers.myresolver.acme.httpchallenge.entrypoint=web"
# - "--certificatesResolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
- "--certificatesResolvers.myresolver.acme.email=${EMAIL_ADDRESS}"
- "--certificatesResolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
# The Web UI (dashboard etc.)
# - "8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./letsencrypt:/letsencrypt
- ./certs:/certs:ro
networks:
- default
# Make the externally created network "gateway" available as network "default"
networks:
default:
external:
name: gateway