diff --git a/docker-compose.yml b/docker-compose.yml index 4054566..71e8af4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,41 +2,69 @@ networks: traefik_front_network: external: true - back_network_: + back_network_gotify: driver: bridge attachable: true #### SERVICES services: -### hello_world - hello_world: - container_name: gitea-app - hostname: gitea-app - image: hello-world +### gotify + gotify: + container_name: gotify-app + hostname: gotify-app + image: gotify/server:latest +# ports: +# - 8185:80 environment: - restart: always - networks: -# - back_network_gitea - - traefik_front_network + - 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.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)" - - "traefik.http.routers.hello-world-http.entrypoints=http" - - "traefik.http.routers.hello-world-http.priority=49" + - "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.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)" - - "traefik.http.routers.hello-world-https.entrypoints=https" - - "traefik.http.routers.hello-world-https.tls=true" - - "traefik.http.routers.hello-world-https.priority=50" - - "traefik.http.routers.gitea.service=gitea-https-service" + - "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.gitea-https-service.loadbalancer.server.port=3000" -# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30" + - "traefik.http.services.gotify-service.loadbalancer.server.port=80"