services: nginx-pghs: image: nginx:stable container_name: nginx-pghs ports: - "8001:80" restart: always volumes: - ./dist:/dist - ./nginx/nginx-pghs.conf:/etc/nginx/nginx.conf:ro - ./nginx/www:/var/www:ro depends_on: - postgres - pghs nginx-xrad: image: nginx:stable container_name: nginx-xrad ports: - "8002:80" restart: always volumes: - ./dist:/dist - ./nginx/nginx-xrad.conf:/etc/nginx/nginx.conf:ro - ./nginx/www:/var/www:ro links: - xrad:xrad depends_on: - postgres - xrad postgres: build: context: ./postgres container_name: postgres restart: always environment: POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres expose: - "5432:5432" volumes: - ./dist:/dist xdac: build: context: ./xdac container_name: xdac depends_on: - postgres restart: always expose: - "8088:8088" links: - postgres:postgres volumes: - ./dist:/dist pghs: build: context: ./pghs container_name: pghs expose: - "8888:8888" depends_on: - postgres restart: always links: - postgres:postgres volumes: - ./dist:/dist xrad: build: context: ./xrad container_name: xrad depends_on: - postgres restart: always expose: - "8889:8889" links: - postgres:postgres volumes: - ./dist:/dist xreports: build: context: ./xreports container_name: xreports restart: always depends_on: - postgres expose: - "8087:8087" volumes: - ./dist:/dist volumes: postgres_data: