zammad-docker-compose/docker-compose.yml

142 lines
3.4 KiB
YAML
Raw Normal View History

---
version: '3.8'
2016-12-17 11:10:51 +00:00
services:
zammad-backup:
command: ["zammad-backup"]
depends_on:
- zammad-railsserver
- zammad-postgresql
entrypoint: /usr/local/bin/backup.sh
2020-02-25 19:00:31 +00:00
environment:
- BACKUP_TIME=03:00
2020-02-25 19:00:31 +00:00
- HOLD_DAYS=10
2023-06-14 11:27:25 +00:00
- POSTGRESQL_DB=${POSTGRES_DB}
2020-02-25 19:00:31 +00:00
- 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
2020-02-25 19:00:31 +00:00
2017-03-08 18:37:05 +00:00
zammad-elasticsearch:
image: bitnami/elasticsearch:${ELASTICSEARCH_VERSION}
2020-02-25 19:00:31 +00:00
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}
2023-06-26 17:20:58 +00:00
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASS=${POSTGRES_PASS}
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}
2017-03-08 18:37:05 +00:00
zammad-nginx:
command: ["zammad-nginx"]
2020-02-25 19:00:31 +00:00
expose:
- "8080"
2017-01-09 14:52:53 +00:00
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
2017-03-08 18:37:05 +00:00
zammad-postgresql:
2020-02-25 19:00:31 +00:00
environment:
2023-06-14 11:27:25 +00:00
- POSTGRES_DB=${POSTGRES_DB}
2020-02-25 19:00:31 +00:00
- 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"]
2017-04-05 20:09:51 +00:00
depends_on:
- zammad-memcached
- zammad-postgresql
- zammad-redis
environment:
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
- REDIS_URL=${REDIS_URL}
2023-06-26 17:20:58 +00:00
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASS=${POSTGRES_PASS}
image: ${IMAGE_REPO}:${VERSION}
restart: ${RESTART}
2017-04-05 20:09:51 +00:00
volumes:
- zammad-var:/opt/zammad/var
zammad-redis:
image: redis:${REDIS_VERSION}
restart: ${RESTART}
volumes:
- redis-data:/data
zammad-scheduler:
command: ["zammad-scheduler"]
2017-04-05 20:09:51 +00:00
depends_on:
- zammad-memcached
- zammad-railsserver
- zammad-redis
environment:
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
- REDIS_URL=${REDIS_URL}
2023-06-26 17:20:58 +00:00
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASS=${POSTGRES_PASS}
image: ${IMAGE_REPO}:${VERSION}
restart: ${RESTART}
2017-04-05 20:09:51 +00:00
volumes:
- zammad-var:/opt/zammad/var
zammad-websocket:
command: ["zammad-websocket"]
2017-04-05 20:09:51 +00:00
depends_on:
- zammad-memcached
- zammad-railsserver
- zammad-redis
environment:
- MEMCACHE_SERVERS=${MEMCACHE_SERVERS}
- REDIS_URL=${REDIS_URL}
2023-06-26 17:20:58 +00:00
- POSTGRESQL_USER=${POSTGRES_USER}
- POSTGRESQL_PASS=${POSTGRES_PASS}
image: ${IMAGE_REPO}:${VERSION}
restart: ${RESTART}
2017-04-05 20:09:51 +00:00
volumes:
- zammad-var:/opt/zammad/var
2016-12-17 11:10:51 +00:00
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