view docker/docker-compose.yml @ 9737:0c4736d5dd4a 3.2.x

Do not expose ports that are not meant to be published
author Tom Gottfried <tom@intevation.de>
date Mon, 25 Jul 2022 12:31:08 +0200
parents 95496d21b4da
children 414647dc6936
line wrap: on
line source
version: "3.5"
services:
  db:
    container_name: "d4eriver-db"
    build:
      context: ../
      dockerfile: ./docker/Dockerfile.db
    image: "d4e/river_db"
    networks:
      - d4e_river
  server:
    container_name: "d4eriver-artifacts"
    build:
      context: ../
      dockerfile: ./docker/Dockerfile.artifacts
    image: "d4e/river_artifacts"
    networks:
      - d4e_river
    depends_on:
      - db
    volumes:
      - ../artifacts/doc/conf:/opt/d4e/bin/conf
      - mapfiles:/opt/d4e/bin
  mapserv:
    container_name: "d4eriver-mapserv"
    build:
      context: ./
      dockerfile: ./Dockerfile.mapserv
    image: "d4e/river_mapserv"
    networks:
      - d4e_river
    depends_on:
      - db
      - server
    volumes:
      - mapfiles:/opt/d4e/bin
    ports:
      - 8081:80
  client:
    container_name: "d4eriver-client"
    build:
      context: ../
      dockerfile: ./docker/Dockerfile.gwt-client
    image: "d4e/river_client"
    networks:
      - d4e_river
    depends_on:
      - server
      - mapserv
    volumes:
      - ../:/opt/d4e/river
    ports:
      - 8080:8080
networks:
  d4e_river:
    name: d4e_river
volumes:
  mapfiles:

http://dive4elements.wald.intevation.org