47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
version: '3'
|
|
|
|
|
|
services:
|
|
milvert-nginx:
|
|
container_name: milvert-nginx
|
|
image: nginx:latest
|
|
restart: always
|
|
networks:
|
|
- backend
|
|
labels:
|
|
- "traefik.enable=true"
|
|
|
|
#HTTPS
|
|
- "traefik.http.routers.milvert-secure.entrypoints=web-secure"
|
|
- "traefik.http.routers.milvert-secure.rule=Host(`www.${DOMAIN}`, `${DOMAIN}`)"
|
|
- "traefik.http.routers.milvert-secure.priority=1"
|
|
# SSL
|
|
- "traefik.http.routers.milvert-secure.tls.certresolver=milvert"
|
|
- "traefik.http.routers.milvert-secure.tls=true"
|
|
volumes:
|
|
- "./milvert.com/conf:/etc/nginx/conf.d"
|
|
- "./milvert.com/html:/html"
|
|
|
|
whoami:
|
|
# A container that exposes an API to show its IP address
|
|
container_name: whoami
|
|
image: containous/whoami
|
|
networks:
|
|
- backend
|
|
- frontend
|
|
ports:
|
|
# The HTTP port
|
|
- "81:80"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.whoami-secure.entrypoints=web-secure"
|
|
- "traefik.http.routers.whoami-secure.rule=Host(`whoami.${DOMAIN}`)"
|
|
- "traefik.http.routers.whoami-secure.tls.certresolver=milvert"
|
|
- "traefik.http.routers.whoami-secure.tls=true"
|
|
networks:
|
|
frontend:
|
|
external: true
|
|
backend:
|
|
external: false
|
|
|