-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
40 lines (39 loc) · 1.46 KB
/
docker-compose.dev.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
services:
traefik:
image: traefik:latest
container_name: ${TRAEFIK_CONTAINER_NAME}
restart: unless-stopped
security_opt:
- no-new-privileges:true
env_file:
- .env
networks:
- proxy-traefik
ports:
- "80:80"
- "443:443"
- "443:443/udp"
- "8080:8080"
#environment:
# - TRAEFIK_DASHBOARD_CREDENTIALS=${TRAEFIK_DASHBOARD_CREDENTIALS}
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- ./data/traefik.yml:/etc/traefik/traefik.yml:ro
#- ./data/acme.json:/acme.json
#- ./data/config.yml:/config.yml:ro
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost.dev`)"
#- "traefik.http.routers.traefik-secure.entrypoints=websecure"
- "traefik.http.routers.traefik-secure.rule=Host(`traefik.localhost.dev`)"
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_DASHBOARD_CREDENTIALS}"
#- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
#- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
#- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
#- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
- "traefik.http.routers.traefik-secure.service=api@internal"
networks:
proxy-traefik:
external: true