version: '3' 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 volumes: - data-zammad:/home/zammad zammad-scheduler: build: context: . dockerfile: containers/zammad-scheduler/Dockerfile depends_on: - zammad links: - zammad-elasticsearch - zammad-postgresql restart: always volumes: - data-zammad:/home/zammad zammad-websocket: build: context: . dockerfile: containers/zammad-websocket/Dockerfile depends_on: - zammad links: - zammad-elasticsearch - zammad-postgresql restart: always volumes: - data-zammad:/home/zammad volumes: data-zammad: driver: local