Browse Source

ajouté docker-compose

root 3 years ago
parent
commit
ebc5acb358
  1. 28
      docker-compose.yml

28
docker-compose.yml

@ -0,0 +1,28 @@
version: '3'
services:
nginxblog:
image: nginx:1.17.4
restart: unless-stopped
networks:
- myweb
# env_file: .env
volumes:
- ./data/www:/usr/share/nginx/html:ro
#- ./data/conf:/etc/nginx
labels:
- "traefik.enable=true"
- "traefik.http.routers.blog.rule=Host(`blog.goe.land`)"
- "traefik.http.routers.blog.entrypoints=web"
- "traefik.http.routers.blogtls.rule=Host(`blog.goe.land`)"
- "traefik.http.routers.blogtls.entrypoints=websecure"
- "traefik.http.routers.blogtls.tls=true"
- "traefik.http.routers.blogtls.tls.certresolver=sample"
- "traefik.docker.network=myweb"
networks:
myweb:
external: true
Loading…
Cancel
Save