zammad-docker-compose/docker-compose-build.yml
2017-03-08 19:37:05 +01:00

79 lines
1.5 KiB
YAML

version: '2'
services:
zammad:
build:
context: .
dockerfile: containers/zammad/Dockerfile
depends_on:
- zammad-elasticsearch
- zammad-postgresql
restart: on-failure
volumes:
- data-zammad:/home/zammad
zammad-elasticsearch:
build:
context: .
dockerfile: containers/zammad-elasticsearch/Dockerfile
restart: always
zammad-nginx:
build:
context: .
dockerfile: containers/zammad-nginx/Dockerfile
depends_on:
- zammad
links:
- zammad-railsserver
- zammad-websocket
ports:
- "80:80"
restart: always
volumes:
- data-zammad:/home/zammad
zammad-postgresql:
build:
context: .
dockerfile: containers/zammad-postgresql/Dockerfile
restart: always
zammad-railsserver:
build:
context: .
dockerfile: containers/zammad-railsserver/Dockerfile
depends_on:
- zammad
links:
- zammad-elasticsearch
- zammad-postgresql
restart: always
zammad-scheduler:
build:
context: .
dockerfile: containers/zammad-scheduler/Dockerfile
depends_on:
- zammad-railsserver
links:
- zammad-elasticsearch
- zammad-postgresql
restart: always
zammad-websocket:
build:
context: .
dockerfile: containers/zammad-websocket/Dockerfile
depends_on:
- zammad-railsserver
links:
- zammad-elasticsearch
- zammad-postgresql
restart: always
volumes:
data-zammad:
driver: local