Hello,
I have setup On-Premis for my docker swarm with the stack.yml:
version: '3.7'
services:
sentry:
image: sentry
networks:
- db
environment:
SENTRY_SECRET_KEY: ${SENTRY_SECRET_KEY:?err}
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_NAME: sentry
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: ${SENTRY_DB_PASSWORD:?err}
SENTRY_REDIS_HOST: redis
SENTRY_SINGLE_ORGANIZATION: "false"
deploy:
placement:
constraints: [node.labels.home == true]
cron:
image: sentry
networks:
- db
command: "sentry run cron"
environment:
SENTRY_SECRET_KEY: ${SENTRY_SECRET_KEY:?err}
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: ${SENTRY_DB_PASSWORD:?err}
SENTRY_REDIS_HOST: redis
deploy:
placement:
constraints: [node.labels.home == true]
worker:
image: sentry
networks:
- db
command: "sentry run worker"
environment:
SENTRY_SECRET_KEY: ${SENTRY_SECRET_KEY:?err}
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_NAME: sentry
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: ${SENTRY_DB_PASSWORD:?err}
SENTRY_REDIS_HOST: redis
deploy:
placement:
constraints: [node.labels.home == true]
upgrade:
image: sentry
networks:
- db
command: "sentry upgrade --noinput --lock"
environment:
SENTRY_SECRET_KEY: ${SENTRY_SECRET_KEY:?err}
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_NAME: sentry
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: ${SENTRY_DB_PASSWORD:?err}
SENTRY_REDIS_HOST: redis
deploy:
placement:
constraints: [node.labels.home == true]
restart_policy:
condition: none
networks:
db:
external: true
I would love some feedback.