-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
28 lines (26 loc) · 1.09 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
version: '3.8'
services:
app:
image: registry.docker-box.example.com/badsyntax/nginx-app:latest
networks:
- traefik-public
healthcheck:
test:
['CMD', 'wget', '-q', '--tries=1', '--spider', 'http://localhost:80']
deploy:
mode: replicated
replicas: 2
labels:
- 'traefik.docker.lbswarm=true'
- 'traefik.http.middlewares.nginx-app-redirectscheme.redirectscheme.permanent=true'
- 'traefik.http.middlewares.nginx-app-redirectscheme.redirectscheme.scheme=https'
- 'traefik.http.routers.nginx-app-secure.entrypoints=websecure'
- 'traefik.http.routers.nginx-app-secure.rule=Host(`nginx-app.example.com`)'
- 'traefik.http.routers.nginx-app-secure.tls.certresolver=letsencrypt'
- 'traefik.http.routers.nginx-app.entrypoints=web'
- 'traefik.http.routers.nginx-app.middlewares=nginx-app-redirectscheme'
- 'traefik.http.routers.nginx-app.rule=Host(`nginx-app.example.com`)'
- 'traefik.http.services.nginx-app-service.loadbalancer.server.port=80'
networks:
traefik-public:
external: true