mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-04 22:50:15 +02:00
b1f84d441f
The Sentry action receives the v-stripped version (e.g. 0.1.1) but the app's SENTRY_RELEASE was set to IMAGE_TAG (e.g. v0.1.1). This caused Sentry to auto-create a second release from incoming events, labelling it (non-semver) instead of associating events with the properly created release. Pass SENTRY_RELEASE as a separate query param through the Portainer webhook (using the already-computed sentry_version output) and reference that in compose.prod.yaml instead of IMAGE_TAG.
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-go/master/schema/compose-spec.json
|
|
# Production environment override
|
|
services:
|
|
php:
|
|
image: ghcr.io/marijndoeve/tijdvoordetest:${IMAGE_TAG}
|
|
environment:
|
|
APP_SECRET: ${APP_SECRET}
|
|
MERCURE_PUBLISHER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
|
|
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET}
|
|
MAILER_DSN: ${MAILER_DSN}
|
|
MAILER_SENDER: ${MAILER_SENDER}
|
|
SENTRY_DSN: ${SENTRY_DSN}
|
|
SENTRY_RELEASE: ${SENTRY_RELEASE}
|
|
SENTRY_ENVIRONMENT: ${SENTRY_ENVIRONMENT}
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.tvdt.rule=Host(`tijdvoordetest.nl`)"
|
|
- "traefik.http.routers.tvdt.entrypoints=websecure"
|
|
- "traefik.http.routers.tvdt.tls.certresolver=marijndoeve"
|
|
- "traefik.http.routers.tvdt.service=tvdt"
|
|
- "traefik.http.services.tvdt.loadbalancer.server.port=80"
|
|
networks:
|
|
- web
|
|
- internal
|
|
database:
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- "5430:5432"
|
|
networks:
|
|
web:
|
|
external: true
|
|
internal:
|
|
external: false
|