version: "3.8" services: blog: image: nginx container_name: blog restart: always volumes: - {{ service_dir }}/git/templates:/etc/nginx/templates - {{ service_dir }}/git/_site:/var/www/blog - {{ service_dir }}/nginx.conf:/etc/nginx/conf.d/default.conf networks: - traefik labels: - traefik.http.routers.blog.entrypoints=websecure - traefik.http.routers.blog.rule=Host(`pizzapim.nl`) - traefik.http.routers.blog.tls=true - traefik.http.routers.blog.tls.certresolver=pizzapim - traefik.http.routers.blog.service=blog - traefik.http.services.blog.loadbalancer.server.port=80 networks: traefik: external: true