Mercurial > dive4elements > river
diff docker/docker-compose.yml @ 9790:75dc4ea60938 3.2.x
Drop using explicit container names
Compose will generate names for the containers and containers can connect
each other on the network via the service names. This avoids the
unnecessary extra "name space" and prepares the application for usage
with different project names.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 20 Jul 2023 10:25:59 +0200 |
parents | a1399209b0d6 |
children | a00bb9d39c16 |
line wrap: on
line diff
--- a/docker/docker-compose.yml Thu Jul 20 10:03:06 2023 +0200 +++ b/docker/docker-compose.yml Thu Jul 20 10:25:59 2023 +0200 @@ -1,13 +1,11 @@ version: "3.5" services: db: - container_name: "d4eriver-db" build: context: ../ dockerfile: ./docker/Dockerfile.db image: "d4e/river_db" - server: - container_name: "d4eriver-artifacts" + artifacts: build: context: ../ dockerfile: ./docker/Dockerfile.artifacts @@ -24,31 +22,28 @@ # ports: # - 8787:8787 mapserv: - container_name: "d4eriver-mapserv" build: context: ./ dockerfile: ./Dockerfile.mapserv image: "d4e/river_mapserv" depends_on: - db - - server + - artifacts volumes: - ./mapserver/cgi-bin:/var/www/cgi-bin - ../artifacts/doc/conf/mapserver:/opt/d4e/bin/conf/mapserver - artifacts-data:/opt/d4e/bin/artifacts-data client: - container_name: "d4eriver-client" build: context: ../ dockerfile: ./docker/Dockerfile.gwt-client image: "d4e/river_client" depends_on: - - server + - artifacts - mapserv volumes: - ../gwt-client/config:/opt/d4e/river/gwt-client/config wiki: - container_name: "d4eriver-wiki" build: context: ./ dockerfile: ./Dockerfile.wiki