-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (31 loc) · 1.02 KB
/
docker-compose.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
version: '3'
networks:
web:
name: web
services:
reverse-proxy:
restart: always
image: traefik:v2.3
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
- "--certificatesresolvers.phpmx.acme.tlschallenge=true"
- "--certificatesresolvers.phpmx.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.phpmx.acme.storage=/letsencrypt/acme.json"
ports:
- "443:443"
- "80:80"
labels:
- "traefik.docker.network=web"
networks:
- web
volumes:
- ./letsencrypt:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock