services: revents: build: context: .. dockerfile: revents-online/Dockerfile container_name: revents-online restart: unless-stopped environment: - NODE_ENV=production - NEXT_PUBLIC_ENCRYPTID_SERVER_URL=${NEXT_PUBLIC_ENCRYPTID_SERVER_URL:-https://auth.ridentity.online} - INFISICAL_CLIENT_ID=${INFISICAL_CLIENT_ID} - INFISICAL_CLIENT_SECRET=${INFISICAL_CLIENT_SECRET} - INFISICAL_PROJECT_SLUG=revents-online depends_on: revents-postgres: condition: service_healthy security_opt: - no-new-privileges:true cap_drop: - ALL read_only: true tmpfs: - /tmp labels: - "traefik.enable=true" - "traefik.http.routers.revents.rule=Host(`revents.online`) || Host(`www.revents.online`) || HostRegexp(`{subdomain:[a-z0-9-]+}.revents.online`)" - "traefik.http.routers.revents.priority=130" - "traefik.http.routers.revents.entrypoints=web" - "traefik.http.services.revents.loadbalancer.server.port=3000" networks: - traefik-public - revents-internal revents-postgres: image: postgres:16-alpine container_name: revents-postgres restart: unless-stopped environment: - POSTGRES_DB=revents - POSTGRES_USER=revents - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} volumes: - revents-pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U revents -d revents"] interval: 10s timeout: 5s retries: 5 security_opt: - no-new-privileges:true cap_drop: - ALL cap_add: - DAC_OVERRIDE - FOWNER - SETGID - SETUID networks: - revents-internal volumes: revents-pgdata: networks: traefik-public: external: true revents-internal: driver: bridge