setup zulip config file

This commit is contained in:
brooke 2025-02-13 16:52:24 -05:00
parent 6e4eeeabc5
commit ae5b8331e4
3 changed files with 21 additions and 3 deletions

View File

@ -1,4 +1,5 @@
export ENTRYPOINT_VERSION=v1 export ENTRYPOINT_VERSION=v1
export ZULIP_CONF_VERSION=v1
export PG_BACKUP_VERSION=v1 export PG_BACKUP_VERSION=v1
export MEM_ENTRYPOINT_VERSION=v1 export MEM_ENTRYPOINT_VERSION=v1
export REDIS_ENTRYPOINT_VERSION=v1 export REDIS_ENTRYPOINT_VERSION=v1

View File

@ -9,6 +9,8 @@ services:
- source: entrypoint - source: entrypoint
target: /custom-entrypoint.sh target: /custom-entrypoint.sh
mode: 0555 mode: 0555
- source: zulip-conf
target: /etc/zulip/zulip.conf
entrypoint: /custom-entrypoint.sh entrypoint: /custom-entrypoint.sh
command: command:
- "app:run" - "app:run"
@ -48,9 +50,8 @@ services:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=proxy" - "traefik.docker.network=proxy"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.scheme=https" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=443" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "coop-cloud.${STACK_NAME}.version=0.1.0+9.4-0" - "coop-cloud.${STACK_NAME}.version=0.1.0+9.4-0"
@ -176,6 +177,9 @@ configs:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION} name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl file: entrypoint.sh.tmpl
template_driver: golang template_driver: golang
zulip-conf:
name: ${STACK_NAME}_zulip-conf_${ZULIP_CONF_VERSION}
file: zulip.conf.tmpl
memcached_entrypoint: memcached_entrypoint:
name: ${STACK_NAME}_memcached_entrypoint_${MEM_ENTRYPOINT_VERSION} name: ${STACK_NAME}_memcached_entrypoint_${MEM_ENTRYPOINT_VERSION}
file: entrypoint.memcached.sh.tmpl file: entrypoint.memcached.sh.tmpl
@ -197,6 +201,7 @@ configs:
volumes: volumes:
zulip: zulip:
zulip_conf:
db: db:
rabbitmq: rabbitmq:
redis: redis:

12
zulip.conf.tmpl Normal file
View File

@ -0,0 +1,12 @@
[machine]
puppet_classes = zulip::profile::docker
deploy_type = production
[postgresql]
version = 14
[application_server]
http_only = true
[loadbalancer]
ips = 10.0.0.0/24