10 Commits

4 changed files with 16 additions and 10 deletions

BIN
.compose.yml.swp Normal file

Binary file not shown.

View File

@ -11,6 +11,8 @@ steps:
purge: true purge: true
deploy_key: deploy_key:
from_secret: drone_ssh_swarm_test from_secret: drone_ssh_swarm_test
networks:
- proxy
environment: environment:
DOMAIN: discourse.swarm-test.autonomic.zone DOMAIN: discourse.swarm-test.autonomic.zone
STACK_NAME: discourse STACK_NAME: discourse

View File

@ -11,6 +11,8 @@ LETS_ENCRYPT_ENV=production
#DISCOURSE_SMTP_USER= #DISCOURSE_SMTP_USER=
#DISCOURSE_SMTP_PROTOCOL= #DISCOURSE_SMTP_PROTOCOL=
#DISCOURSE_SMTP_AUTH= #DISCOURSE_SMTP_AUTH=
# Set this if you send e-mails from a different domain than noreply@$DOMAIN
#DISCOURSE_NOTIFICATION_EMAIL=$SMTP_USER
# SMTP authentication # SMTP authentication
#COMPOSE_FILE="compose.yml:compose.smtpauth.yml" #COMPOSE_FILE="compose.yml:compose.smtpauth.yml"

View File

@ -3,7 +3,7 @@ version: "3.8"
services: services:
app: app:
image: bitnami/discourse:2.7.7 image: bitnami/discourse:2.8.9
networks: networks:
- proxy - proxy
- internal - internal
@ -20,6 +20,7 @@ services:
- DISCOURSE_SMTP_USER - DISCOURSE_SMTP_USER
- DISCOURSE_SMTP_PROTOCOL - DISCOURSE_SMTP_PROTOCOL
- DISCOURSE_SMTP_AUTH - DISCOURSE_SMTP_AUTH
- DISCOURSE_NOTIFICATION_EMAIL
volumes: volumes:
- 'discourse_data:/bitnami/discourse' - 'discourse_data:/bitnami/discourse'
secrets: secrets:
@ -41,15 +42,16 @@ services:
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
healthcheck: - "coop-cloud.${STACK_NAME}.version=0.3.1+2.8.9"
test: ["CMD", "curl", "-f", "http://localhost:3000"] # healthcheck:
interval: 30s # test: ["CMD", "curl", "-f", "http://localhost:3000"]
timeout: 10s # interval: 30s
retries: 10 # timeout: 10s
start_period: 1m # retries: 10
# start_period: 1m
db: db:
image: postgres:11-alpine image: postgres:13-alpine
networks: networks:
- internal - internal
secrets: secrets:
@ -63,14 +65,14 @@ services:
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password - POSTGRES_PASSWORD_FILE=/run/secrets/db_password
redis: redis:
image: redis:6.0-alpine image: redis:7.0-alpine
networks: networks:
- internal - internal
volumes: volumes:
- 'redis_data:/data' - 'redis_data:/data'
sidekiq: sidekiq:
image: bitnami/discourse:2.7.7 image: bitnami/discourse:2.8.9
networks: networks:
- internal - internal
depends_on: depends_on: