-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
43 lines (40 loc) · 1.43 KB
/
docker-compose.dev.yml
File metadata and controls
43 lines (40 loc) · 1.43 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
34
35
36
37
38
39
40
41
42
43
version: '3.7'
services:
traefik:
image: traefik:latest
command:
- "--configFile=/conf/traefik.toml"
ports:
- 80:80
- 443:443
labels:
- traefik.enable=true
- traefik.http.routers.${podName}.rule=Host(`${hostRule}`)
- traefik.http.routers.${podName}.service=api@internal
- traefik.http.routers.${podName}.entrypoints=websecure
- traefik.http.services.${podName}.loadbalancer.server.port=8080
- traefik.http.routers.${podName}.middlewares=${podName}-auth
- traefik.http.middlewares.${podName}-auth.basicauth.users=${traefikUser}:${traefikPass}
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./conf:/conf:ro
- ./certs:/certs:ro
# Deploy block for docker swarm mode only - ignored by docker-compose
deploy:
mode: global
placement:
constraints: [node.role == manager]
labels:
- traefik.enable=true
- traefik.http.routers.${podName}.rule=Host(`${hostRule}`)
- traefik.http.routers.${podName}.service=api@internal
- traefik.http.routers.${podName}.entrypoints=websecure
- traefik.http.services.${podName}.loadbalancer.server.port=8080
- traefik.http.routers.${podName}.middlewares=${podName}-auth
- traefik.http.middlewares.${podName}-auth.basicauth.users=${traefikUser}:${traefikPass}
networks:
proxy:
external: false
name: proxy