zammad-docker-compose/docker-compose.yml
André Bauer 40c1f6b041 added .env file with VERSION var...
...to be able to let compose file untouched when using another image version
2017-11-11 11:09:43 +01:00

95 lines
2.2 KiB
YAML

version: '3.3'
services:
zammad-backup:
depends_on:
- zammad-railsserver
image: zammad/zammad-docker-compose:zammad-postgresql${VERSION}
labels:
io.rancher.container.pull_image: always
links:
- zammad-postgresql
restart: always
volumes:
- data-zammad:/home/zammad
- backup-zammad:/var/tmp/zammad
entrypoint: /usr/local/bin/backup.sh
command: zammad-backup
zammad-elasticsearch:
image: zammad/zammad-docker-compose:zammad-elasticsearch${VERSION}
labels:
io.rancher.container.pull_image: always
restart: always
volumes:
- data-elasticsearch:/usr/share/elasticsearch/data
zammad-nginx:
depends_on:
- zammad-railsserver
image: zammad/zammad-docker-compose:zammad-nginx${VERSION}
labels:
io.rancher.container.pull_image: always
links:
- zammad-railsserver
- zammad-websocket
restart: always
volumes:
- data-zammad:/home/zammad
zammad-postgresql:
image: zammad/zammad-docker-compose:zammad-postgresql${VERSION}
labels:
io.rancher.container.pull_image: always
restart: always
zammad-railsserver:
depends_on:
- zammad-postgresql
image: zammad/zammad-docker-compose:zammad${VERSION}
labels:
io.rancher.container.pull_image: always
links:
- zammad-elasticsearch
- zammad-postgresql
restart: always
volumes:
- data-zammad:/home/zammad
command: ["zammad-railsserver"]
zammad-scheduler:
depends_on:
- zammad-railsserver
image: zammad/zammad-docker-compose:zammad${VERSION}
labels:
io.rancher.container.pull_image: always
links:
- zammad-elasticsearch
- zammad-postgresql
restart: always
volumes:
- data-zammad:/home/zammad
command: ["zammad-scheduler"]
zammad-websocket:
depends_on:
- zammad-railsserver
image: zammad/zammad-docker-compose:zammad${VERSION}
labels:
io.rancher.container.pull_image: always
links:
- zammad-postgresql
restart: always
volumes:
- data-zammad:/home/zammad
command: ["zammad-websocket"]
volumes:
backup-zammad:
driver: local
data-zammad:
driver: local
data-elasticsearch:
driver: local