update
This commit is contained in:
parent
6f033b3891
commit
9fba0ccab8
@ -1,6 +1,6 @@
|
|||||||
# zulip
|
# zulip
|
||||||
|
|
||||||
> One line description of the recipe
|
> full-featured chat application for teams with threads, file sharing, voice chat, and more with integrations.
|
||||||
|
|
||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
|
|
||||||
|
1
abra.sh
1
abra.sh
@ -4,3 +4,4 @@ export MEM_ENTRYPOINT_VERSION=v1
|
|||||||
export REDIS_ENTRYPOINT_VERSION=v1
|
export REDIS_ENTRYPOINT_VERSION=v1
|
||||||
export RABBIT_HEALTHCHECK_VERSION=v1
|
export RABBIT_HEALTHCHECK_VERSION=v1
|
||||||
export RABBIT_ENTRYPOINT_VERSION=v1
|
export RABBIT_ENTRYPOINT_VERSION=v1
|
||||||
|
export REDIS_HEALTHCHECK_VERSION=v1
|
34
compose.yml
34
compose.yml
@ -10,6 +10,8 @@ services:
|
|||||||
target: /custom-entrypoint.sh
|
target: /custom-entrypoint.sh
|
||||||
mode: 0555
|
mode: 0555
|
||||||
entrypoint: /custom-entrypoint.sh
|
entrypoint: /custom-entrypoint.sh
|
||||||
|
command:
|
||||||
|
- "app:run"
|
||||||
environment:
|
environment:
|
||||||
DB_HOST: "database"
|
DB_HOST: "database"
|
||||||
DB_HOST_PORT: "5432"
|
DB_HOST_PORT: "5432"
|
||||||
@ -23,6 +25,10 @@ services:
|
|||||||
secrets:
|
secrets:
|
||||||
- zulip_secret
|
- zulip_secret
|
||||||
- smtp_password
|
- smtp_password
|
||||||
|
- db_password
|
||||||
|
- rabbitmq_password
|
||||||
|
- redis_password
|
||||||
|
- memcached_password
|
||||||
volumes:
|
volumes:
|
||||||
- "zulip:/data:rw"
|
- "zulip:/data:rw"
|
||||||
ulimits:
|
ulimits:
|
||||||
@ -31,6 +37,7 @@ services:
|
|||||||
hard: 1048576
|
hard: 1048576
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
- internal
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
@ -39,15 +46,10 @@ 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}.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=1.0.0+9.4-0+17.2+4.0.6"
|
- "coop-cloud.${STACK_NAME}.version=0.1.0+9.4-0"
|
||||||
|
|
||||||
database:
|
database:
|
||||||
image: "zulip/zulip-postgresql:17.2"
|
image: "zulip/zulip-postgresql:14"
|
||||||
deploy:
|
|
||||||
labels:
|
|
||||||
backupbot.backup.pre-hook: "/pg_backup.sh backup"
|
|
||||||
backupbot.backup.path: "/var/lib/postgresql/data/backup.sql"
|
|
||||||
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: "zulip"
|
POSTGRES_DB: "zulip"
|
||||||
POSTGRES_USER: "zulip"
|
POSTGRES_USER: "zulip"
|
||||||
@ -88,12 +90,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
SASL_CONF_PATH: "/home/memcache/memcached.conf"
|
SASL_CONF_PATH: "/home/memcache/memcached.conf"
|
||||||
MEMCACHED_SASL_PWDB: "/home/memcache/memcached-sasl-db"
|
MEMCACHED_SASL_PWDB: "/home/memcache/memcached-sasl-db"
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "/bin/nc", "-z", "127.0.0.1", "11211"]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 2s
|
|
||||||
retries: 3
|
|
||||||
start_period: 3s
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
@ -112,16 +108,11 @@ services:
|
|||||||
- rabbitmq_password
|
- rabbitmq_password
|
||||||
volumes:
|
volumes:
|
||||||
- "rabbitmq:/var/lib/rabbitmq:rw"
|
- "rabbitmq:/var/lib/rabbitmq:rw"
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD-SHELL", "/healthcheck.sh" ]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 3
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: "redis:alpine"
|
image: "redis:7.2.7"
|
||||||
configs:
|
configs:
|
||||||
- source: redis_entrypoint
|
- source: redis_entrypoint
|
||||||
target: /custom-entrypoint.sh
|
target: /custom-entrypoint.sh
|
||||||
@ -140,11 +131,6 @@ services:
|
|||||||
exec redis-server /etc/redis.conf
|
exec redis-server /etc/redis.conf
|
||||||
volumes:
|
volumes:
|
||||||
- "redis:/data:rw"
|
- "redis:/data:rw"
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD-SHELL", "/healthcheck.sh" ]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 3
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$DEBUG" = "true" ] || [ "$DEBUG" = "True" ]; then
|
||||||
|
set -x
|
||||||
|
set -o functrace
|
||||||
|
fi
|
||||||
|
set -e
|
||||||
|
shopt -s extglob
|
||||||
|
|
||||||
if [ -f /run/secrets/db_password ]; then
|
if [ -f /run/secrets/db_password ]; then
|
||||||
export SECRETS_postgres_password=$(cat /run/secrets/db_password)
|
export SECRETS_postgres_password=$(cat /run/secrets/db_password)
|
||||||
else
|
else
|
||||||
@ -36,16 +43,6 @@ else
|
|||||||
echo "zulip_secret not found, skipping."
|
echo "zulip_secret not found, skipping."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$DEBUG" = "true" ] || [ "$DEBUG" = "True" ]; then
|
|
||||||
set -x
|
|
||||||
set -o functrace
|
|
||||||
fi
|
|
||||||
set -e
|
|
||||||
shopt -s extglob
|
|
||||||
|
|
||||||
# DB aka Database
|
# DB aka Database
|
||||||
DB_HOST="${DB_HOST:-127.0.0.1}"
|
DB_HOST="${DB_HOST:-127.0.0.1}"
|
||||||
DB_HOST_PORT="${DB_HOST_PORT:-5432}"
|
DB_HOST_PORT="${DB_HOST_PORT:-5432}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user