version: '3' services: milvert: container_name: milvert image: nginx:latest restart: always networks: - backend - frontend ports: - 8004:80 labels: - "traefik.enable=true" - "traefik.http.routers.milvert.com-secure.entrypoints=web-secure" - "traefik.http.routers.milvert.com-secure.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.milvert.com-secure.tls.certresolver=milvert" - "traefik.http.routers.milvert.com-secure.tls=true" #- "traefik.http.routers.milvert-secure.priority=1" volumes: - "${DIR}/milvert-nginx/conf:/etc/nginx/conf.d" - "${DIR}/milvert-nginx/html:/html" whoami: # A container that exposes an API to show its IP address container_name: whoami image: containous/whoami networks: - backend 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" diak: image: diak:1.0 build: ./diabets_app/client container_name: diak networks: - backend - frontend ports: - 8003:80 #devices: #- path to device:path to device restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.diak-secure.entrypoints=web-secure" - "traefik.http.routers.diak-secure.rule=Host(`diak.${DOMAIN}`)" - "traefik.http.routers.diak-secure.tls.certresolver=milvert" - "traefik.http.routers.diak-secure.tls=true" syncthing: image: linuxserver/syncthing container_name: syncthing environment: - PUID=1000 - PGID=1000 - TZ=Europe/Stockholm - UMASK_SET=022 volumes: - /mnt/johanna_backup/syncthing/config:/config - /mnt/johanna_backup/data1:/data1 - /mnt/johanna_backup/data2:/data2 ports: - 8384:8384 - 22000:22000 - 21027:21027/udp networks: - frontend - backend restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.sync_johanna-secure.entrypoints=web-secure" - "traefik.http.routers.sync_johanna-secure.rule=Host(`sync.${DOMAIN}`)" - "traefik.http.routers.sync_johanna-secure.tls.certresolver=milvert" - "traefik.http.routers.sync_johanna-secure.tls=true" networks: frontend: external: true backend: external: false