zammad-docker-compose/docker-compose.yml
Jan Kiesewetter 334f605bde Move mapping of port 80 to docker-compose.override.yml
Moving the port mapping to override file makes it possible to easy use an reverse proxy for production.
This is necessary because it is not possible to remove a property with an override file.
See https://docs.docker.com/compose/extends/#understanding-multiple-compose-files

Resolves: #51
2017-10-10 10:14:25 +02:00

95 lines
2.1 KiB
YAML

version: '3.3'
services:
zammad-backup:
depends_on:
- zammad-railsserver
image: zammad/zammad-docker-compose:zammad-postgresql
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
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
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
labels:
io.rancher.container.pull_image: always
restart: always
zammad-railsserver:
depends_on:
- zammad-postgresql
image: zammad/zammad-docker-compose:zammad
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
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
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