ffa1268a2a
* Update to Zammad 6.0. * adjust compose and env / change docker registry Signed-off-by: André Bauer <andre.bauer@staffbase.com> --------- Signed-off-by: André Bauer <andre.bauer@staffbase.com> Co-authored-by: André Bauer <andre.bauer@staffbase.com>
134 lines
3.1 KiB
YAML
134 lines
3.1 KiB
YAML
---
|
|
version: '3.8'
|
|
|
|
services:
|
|
|
|
zammad-backup:
|
|
command: ["zammad-backup"]
|
|
depends_on:
|
|
- zammad-railsserver
|
|
- zammad-postgresql
|
|
entrypoint: /usr/local/bin/backup.sh
|
|
environment:
|
|
- BACKUP_TIME=03:00
|
|
- HOLD_DAYS=10
|
|
- POSTGRESQL_DB=${POSTGRES_DB}
|
|
- POSTGRESQL_USER=${POSTGRES_USER}
|
|
- POSTGRESQL_PASSWORD=${POSTGRES_PASS}
|
|
- TZ=Europe/Berlin
|
|
image: postgres:${POSTGRES_VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- zammad-backup:/var/tmp/zammad
|
|
- zammad-var:/opt/zammad/var:ro
|
|
- ./scripts/backup.sh:/usr/local/bin/backup.sh:ro
|
|
|
|
zammad-elasticsearch:
|
|
image: bitnami/elasticsearch:${ELASTICSEARCH_VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- elasticsearch-data:/bitnami/elasticsearch/data
|
|
|
|
zammad-init:
|
|
command: ["zammad-init"]
|
|
depends_on:
|
|
- zammad-postgresql
|
|
environment:
|
|
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
|
|
- REDIS_URL=${REDIS_URL}
|
|
image: ${IMAGE_REPO}:${VERSION}
|
|
restart: on-failure
|
|
user: 0:0
|
|
volumes:
|
|
- zammad-config-nginx:/etc/nginx/sites-enabled
|
|
- zammad-var:/opt/zammad/var
|
|
|
|
zammad-memcached:
|
|
command: memcached -m 256M
|
|
image: memcached:${MEMCACHE_VERSION}
|
|
restart: ${RESTART}
|
|
|
|
zammad-nginx:
|
|
command: ["zammad-nginx"]
|
|
expose:
|
|
- "8080"
|
|
depends_on:
|
|
- zammad-railsserver
|
|
image: ${IMAGE_REPO}:${VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- zammad-config-nginx:/etc/nginx/sites-enabled:ro
|
|
- zammad-var:/opt/zammad/var:ro
|
|
|
|
zammad-postgresql:
|
|
environment:
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASS}
|
|
image: postgres:${POSTGRES_VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- postgresql-data:/var/lib/postgresql/data
|
|
|
|
zammad-railsserver:
|
|
command: ["zammad-railsserver"]
|
|
depends_on:
|
|
- zammad-memcached
|
|
- zammad-postgresql
|
|
- zammad-redis
|
|
environment:
|
|
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
|
|
- REDIS_URL=${REDIS_URL}
|
|
image: ${IMAGE_REPO}:${VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- zammad-var:/opt/zammad/var
|
|
|
|
zammad-redis:
|
|
image: redis:${REDIS_VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- redis-data:/data
|
|
|
|
zammad-scheduler:
|
|
command: ["zammad-scheduler"]
|
|
depends_on:
|
|
- zammad-memcached
|
|
- zammad-railsserver
|
|
- zammad-redis
|
|
environment:
|
|
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
|
|
- REDIS_URL=${REDIS_URL}
|
|
image: ${IMAGE_REPO}:${VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- zammad-var:/opt/zammad/var
|
|
|
|
zammad-websocket:
|
|
command: ["zammad-websocket"]
|
|
depends_on:
|
|
- zammad-memcached
|
|
- zammad-railsserver
|
|
- zammad-redis
|
|
environment:
|
|
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
|
|
- REDIS_URL=${REDIS_URL}
|
|
image: ${IMAGE_REPO}:${VERSION}
|
|
restart: ${RESTART}
|
|
volumes:
|
|
- zammad-var:/opt/zammad/var
|
|
|
|
volumes:
|
|
elasticsearch-data:
|
|
driver: local
|
|
postgresql-data:
|
|
driver: local
|
|
redis-data:
|
|
driver: local
|
|
zammad-backup:
|
|
driver: local
|
|
zammad-config-nginx:
|
|
driver: local
|
|
zammad-var:
|
|
driver: local
|