zammad-docker-compose/docker-compose-build.yml

41 lines
726 B
YAML

version: '2'
services:
elasticsearch:
build:
context: .
dockerfile: Dockerfile.elasticsearch
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
ports:
- "80:80"
links:
- zammad
depends_on:
- zammad
volumes:
- data-zammad:/home/zammad
postgresql:
build:
context: .
dockerfile: Dockerfile.postgresql
zammad:
build:
context: .
dockerfile: Dockerfile.zammad
links:
- postgresql
- elasticsearch
depends_on:
- postgresql
- elasticsearch
volumes:
- data-zammad:/home/zammad
- data-ruby:/usr/local
volumes:
data-ruby:
driver: local
data-zammad:
driver: local