From 4b7bd981436c4ed8a4e992dc26f044baa8f5579f Mon Sep 17 00:00:00 2001 From: Elliott Shugerman Date: Mon, 18 May 2020 23:15:44 -0600 Subject: [PATCH] misc development docker-compose.yml improvements (#1905) * tweaks * selective bind mounts * code review: missing some files in bind mount --- dev/containers/docker-compose.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/dev/containers/docker-compose.yml b/dev/containers/docker-compose.yml index dce10ba3..f5b3ac81 100644 --- a/dev/containers/docker-compose.yml +++ b/dev/containers/docker-compose.yml @@ -4,6 +4,7 @@ version: "3" services: db: + container_name: wiki-db image: postgres:9-alpine environment: POSTGRES_DB: wiki @@ -13,26 +14,22 @@ services: driver: "none" volumes: - db-data:/var/lib/postgresql/data - networks: - - wikinet ports: - "15432:5432" adminer: + container_name: wiki-adminer image: adminer:latest logging: driver: "none" - networks: - - wikinet ports: - "3001:8080" # solr: + # container_name: wiki-solr # image: solr:7-alpine # logging: # driver: "none" - # networks: - # - wikinet # ports: # - "8983:8983" # volumes: @@ -43,21 +40,19 @@ services: # - wiki wiki: + container_name: wiki-app build: context: ../.. dockerfile: dev/containers/Dockerfile depends_on: - db - networks: - - wikinet ports: - "3000:3000" volumes: - ../..:/wiki - /wiki/node_modules + - /wiki/.git -networks: - wikinet: volumes: db-data: