#### NETWORKS networks: traefik_front_network: external: true back_network_gotify: driver: bridge attachable: true #### SERVICES services: ### gotify gotify: container_name: gotify-app hostname: gotify-app image: gotify/server:latest # ports: # - 8185:80 environment: - TZ='Europe/Paris' - GOTIFY_SERVER_PORT=80 - GOTIFY_SERVER_KEEPALIVEPERIODSECONDS=0 - GOTIFY_SERVER_LISTENADDR= - GOTIFY_SERVER_SSL_ENABLED=false - GOTIFY_SERVER_SSL_REDIRECTTOHTTPS=true - GOTIFY_SERVER_SSL_LISTENADDR= - GOTIFY_SERVER_SSL_PORT=443 - GOTIFY_SERVER_SSL_CERTFILE= - GOTIFY_SERVER_SSL_CERTKEY= - GOTIFY_SERVER_SSL_LETSENCRYPT_ENABLED=false - GOTIFY_SERVER_SSL_LETSENCRYPT_ACCEPTTOS=false - GOTIFY_SERVER_SSL_LETSENCRYPT_CACHE=certs # - GOTIFY_SERVER_SSL_LETSENCRYPT_HOSTS=[mydomain.tld, myotherdomain.tld] # - GOTIFY_SERVER_RESPONSEHEADERS={X-Custom-Header: "custom value", x-other: value} # - GOTIFY_SERVER_TRUSTEDPROXIES=[127.0.0.1,192.168.178.2/24] # - GOTIFY_SERVER_CORS_ALLOWORIGINS=[.+\.example\.com, otherdomain\.com] # - GOTIFY_SERVER_CORS_ALLOWMETHODS=[GET, POST] # - GOTIFY_SERVER_CORS_ALLOWHEADERS=[X-Gotify-Key, Authorization] # - GOTIFY_SERVER_STREAM_ALLOWEDORIGINS=[.+.example\.com, otherdomain\.com] - GOTIFY_SERVER_STREAM_PINGPERIODSECONDS=45 - GOTIFY_DATABASE_DIALECT=sqlite3 - GOTIFY_DATABASE_CONNECTION=data/gotify.db - GOTIFY_DEFAULTUSER_NAME=admin - GOTIFY_DEFAULTUSER_PASS=admin # - GOTIFY_DEFAULTUSER_PASS=custom - GOTIFY_PASSSTRENGTH=10 - GOTIFY_UPLOADEDIMAGESDIR=data/images - GOTIFY_PLUGINSDIR=data/plugins - GOTIFY_REGISTRATION=false volumes: - "./data:/app/data" networks: - traefik_front_network - back_network_gotify labels: - "com.centurylinklabs.watchtower.enable=true" - "traefik.enable=true" - "traefik.docker.network=traefik_front_network" # HTTP - "traefik.http.routers.gotify-http.rule=Host(`gotify.tips-of-mine.com`)" - "traefik.http.routers.gotify-http.entrypoints=http" - "traefik.http.routers.gotify-http.priority=49" # HTTPS - "traefik.http.routers.gotify-https.rule=Host(`gotify.tips-of-mine.com`)" - "traefik.http.routers.gotify-https.entrypoints=https" - "traefik.http.routers.gotify-https.tls=true" - "traefik.http.routers.gotify-https.priority=50" - "traefik.http.routers.gotify.service=gotify-service" # Middleware # Service - "traefik.http.services.gotify-service.loadbalancer.server.port=80"