zammad-docker-compose/docker-compose-build.yml
2017-01-12 14:14:25 +01:00

82 lines
1.4 KiB
YAML

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