self-hosting/roles/website-marie-docker/files/website-marie/docker-compose.yml

26 lines
722 B
YAML
Raw Normal View History

2020-07-24 10:54:06 +02:00
version: '2.2'
networks:
web:
external:
name: web
services:
website-marie:
image: nginx
labels:
- "traefik.backend=website-marie"
- "traefik.docker.network=web"
2021-03-26 20:06:15 +01:00
- "traefik.frontend.rule=Host:osteopathie.froidmont.org,www.osteopathie.froidmont.org"
- "traefik.frontend.redirect.regex=^https?://www.osteopathie.froidmont.org/(.*)"
- "traefik.frontend.redirect.replacement=https://osteopathie.froidmont.org/$${1}"
2020-07-24 10:54:06 +02:00
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.default.protocol=http"
volumes:
- /var/lib/website-marie:/usr/share/nginx/html:ro
2021-03-26 20:06:15 +01:00
- ./nginx.conf:/etc/nginx/nginx.conf:ro
2020-07-24 10:54:06 +02:00
networks:
- web
restart: always