forked from coop-cloud/discourse
¿Abra? No. ¡Cierre!
This commit is contained in:
parent
ec72949bfa
commit
4cde5121b7
23
.drone.yml
23
.drone.yml
|
@ -1,23 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: deploy to swarm-test.autonomic.zone
|
|
||||||
steps:
|
|
||||||
- name: deployment
|
|
||||||
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
|
||||||
settings:
|
|
||||||
host: swarm-test.autonomic.zone
|
|
||||||
stack: discourse
|
|
||||||
generate_secrets: true
|
|
||||||
purge: true
|
|
||||||
deploy_key:
|
|
||||||
from_secret: drone_ssh_swarm_test
|
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
environment:
|
|
||||||
DOMAIN: discourse.swarm-test.autonomic.zone
|
|
||||||
STACK_NAME: discourse
|
|
||||||
LETS_ENCRYPT_ENV: production
|
|
||||||
SECRET_DB_PASSWORD_VERSION: v1
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- main
|
|
21
.env.sample
21
.env.sample
|
@ -1,21 +0,0 @@
|
||||||
TYPE=discourse
|
|
||||||
|
|
||||||
DOMAIN=discourse.example.com
|
|
||||||
## Domain aliases
|
|
||||||
#EXTRA_DOMAINS=', `www.discourse.example.com`'
|
|
||||||
LETS_ENCRYPT_ENV=production
|
|
||||||
|
|
||||||
# Outgoing email
|
|
||||||
#DISCOURSE_SMTP_HOST=
|
|
||||||
#DISCOURSE_SMTP_PORT=
|
|
||||||
#DISCOURSE_SMTP_USER=
|
|
||||||
#DISCOURSE_SMTP_PROTOCOL=
|
|
||||||
#DISCOURSE_SMTP_AUTH=
|
|
||||||
# Set this if you send e-mails from a different domain than noreply@$DOMAIN
|
|
||||||
#DISCOURSE_NOTIFICATION_EMAIL=$SMTP_USER
|
|
||||||
|
|
||||||
# SMTP authentication
|
|
||||||
#COMPOSE_FILE="compose.yml:compose.smtpauth.yml"
|
|
||||||
#SECRET_SMTP_PASSWORD_VERSION=v1
|
|
||||||
|
|
||||||
SECRET_DB_PASSWORD_VERSION=v1
|
|
|
@ -0,0 +1 @@
|
||||||
|
.env
|
|
@ -1,6 +1,3 @@
|
||||||
---
|
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
environment:
|
environment:
|
||||||
|
@ -17,4 +14,4 @@ services:
|
||||||
secrets:
|
secrets:
|
||||||
smtp_password:
|
smtp_password:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
|
name: ${STACK_NAME}_smtp_password
|
|
@ -1,6 +1,3 @@
|
||||||
---
|
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: bitnami/discourse:3.0.6
|
image: bitnami/discourse:3.0.6
|
||||||
|
@ -39,11 +36,6 @@ services:
|
||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
## Redirect from EXTRA_DOMAINS to DOMAIN
|
|
||||||
#- "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.SSLHost=${DOMAIN}"
|
|
||||||
- "coop-cloud.${STACK_NAME}.version=0.5.0+3.0.6"
|
|
||||||
# healthcheck:
|
# healthcheck:
|
||||||
# test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
# test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||||
# interval: 30s
|
# interval: 30s
|
||||||
|
@ -114,7 +106,7 @@ services:
|
||||||
secrets:
|
secrets:
|
||||||
db_password:
|
db_password:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
name: ${STACK_NAME}_db_password
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgresql_data:
|
postgresql_data:
|
||||||
|
@ -128,6 +120,6 @@ networks:
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
db_entrypoint:
|
db_entrypoint:
|
||||||
name: ${STACK_NAME}_db_entrypoint_${DB_ENTRYPOINT_VERSION}
|
name: ${STACK_NAME}_db_entrypoint
|
||||||
file: entrypoint.postgres.sh.tmpl
|
file: entrypoint.postgres.sh.tmpl
|
||||||
template_driver: golang
|
template_driver: golang
|
Loading…
Reference in New Issue