diff --git a/Jenkinsfile b/Jenkinsfile index 445bd5f..d529237 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,18 +76,24 @@ services: - "traefik.enable=true" - "traefik.http.services.${NAME_SERVICE}.loadbalancer.server.port=3000" - "traefik.http.routers.${NAME_SERVICE}.entrypoints=web" - - "traefik.http.routers.${NAME_SERVICE}.rule=Host(recall.vodorod.cl)" + - "traefik.http.routers.${NAME_SERVICE}.rule=Host(simplenote.danielarroyo.cl)" environment: - - TZ=America/Santiago - - ADMIN_TOKEN=${ADMIN_TOKEN} + - NODE_ENV=production + - PORT=3000 + - ADMIN_TOKEN=${SIMPLENOTE_ADMIN_TOKEN} - DATA_ROOT=/app/data - - CORS_ORIGIN=* + - CORS_ORIGIN=${SIMPLENOTE_CORS_ORIGIN:-*} volumes: - - ./data:/app/data + - simplenote-data:/app/data + healthcheck: + test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"] + interval: 30s + timeout: 10s + retries: 3 networks: - homelab-net - mem_limit: 512m - mem_reservation: 256m + mem_limit: 128m + mem_reservation: 64m restart: unless-stopped networks: homelab-net: