1f5c9036c2
- replaced wget with curl - made zammad image smaller by using tar.gz install instead of git clone - moved sed commands to entrypoint - added variables to entrypoint to set used servers dynamically - added kubernetes backup cronjob - added postgresql volume to compose file - write nginx logs to stdout & stderr - create zammad user & group manually with uid/gid 1000
127 lines
2.9 KiB
YAML
127 lines
2.9 KiB
YAML
version: '3.3'
|
|
|
|
services:
|
|
|
|
zammad-backup:
|
|
command: ["zammad-backup"]
|
|
depends_on:
|
|
- zammad-railsserver
|
|
entrypoint: /usr/local/bin/backup.sh
|
|
image: ${IMAGE_REPO}:zammad-postgresql${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
links:
|
|
- zammad-postgresql
|
|
restart: always
|
|
volumes:
|
|
- zammad-backup:/var/tmp/zammad
|
|
- zammad-data:/opt/zammad
|
|
|
|
zammad-elasticsearch:
|
|
image: ${IMAGE_REPO}:zammad-elasticsearch${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
restart: always
|
|
volumes:
|
|
- elasticsearch-data:/usr/share/elasticsearch/data
|
|
|
|
zammad-init:
|
|
command: ["zammad-init"]
|
|
depends_on:
|
|
- zammad-postgresql
|
|
image: ${IMAGE_REPO}:zammad${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
links:
|
|
- zammad-elasticsearch
|
|
- zammad-postgresql
|
|
restart: on-failure
|
|
volumes:
|
|
- zammad-data:/opt/zammad
|
|
|
|
zammad-memcached:
|
|
command: ["zammad-memcached"]
|
|
image: ${IMAGE_REPO}:zammad-memcached${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
restart: always
|
|
|
|
zammad-nginx:
|
|
command: ["zammad-nginx"]
|
|
depends_on:
|
|
- zammad-railsserver
|
|
image: ${IMAGE_REPO}:zammad${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
links:
|
|
- zammad-railsserver
|
|
- zammad-websocket
|
|
restart: always
|
|
volumes:
|
|
- zammad-data:/opt/zammad
|
|
|
|
zammad-postgresql:
|
|
image: ${IMAGE_REPO}:zammad-postgresql${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
restart: always
|
|
volumes:
|
|
- postgresql-data:/var/lib/postgresql/data
|
|
|
|
zammad-railsserver:
|
|
command: ["zammad-railsserver"]
|
|
depends_on:
|
|
- zammad-memcached
|
|
- zammad-postgresql
|
|
image: ${IMAGE_REPO}:zammad${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
links:
|
|
- zammad-elasticsearch
|
|
- zammad-memcached
|
|
- zammad-postgresql
|
|
restart: always
|
|
volumes:
|
|
- zammad-data:/opt/zammad
|
|
|
|
zammad-scheduler:
|
|
command: ["zammad-scheduler"]
|
|
depends_on:
|
|
- zammad-memcached
|
|
- zammad-railsserver
|
|
image: ${IMAGE_REPO}:zammad${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
links:
|
|
- zammad-elasticsearch
|
|
- zammad-memcached
|
|
- zammad-postgresql
|
|
restart: always
|
|
volumes:
|
|
- zammad-data:/opt/zammad
|
|
|
|
zammad-websocket:
|
|
command: ["zammad-websocket"]
|
|
depends_on:
|
|
- zammad-memcached
|
|
- zammad-railsserver
|
|
image: ${IMAGE_REPO}:zammad${VERSION}
|
|
labels:
|
|
io.rancher.container.pull_image: always
|
|
links:
|
|
- zammad-postgresql
|
|
- zammad-memcached
|
|
restart: always
|
|
volumes:
|
|
- zammad-data:/opt/zammad
|
|
|
|
volumes:
|
|
elasticsearch-data:
|
|
driver: local
|
|
postgresql-data:
|
|
driver: local
|
|
zammad-backup:
|
|
driver: local
|
|
zammad-data:
|
|
driver: local
|