From 49373b9b516fbb4aaa69376d4c8705fdfa633fa0 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Mon, 20 Sep 2021 23:08:50 +0000 Subject: Last .devcontainer changes - Copy over more RC changes - Copy over Microsoft's license and copyright for brevity - Change container names --- .devcontainer/docker-compose.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.devcontainer/docker-compose.yml') diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 20632f3..74b5210 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: - app: + aocov: build: context: . dockerfile: Dockerfile @@ -10,6 +10,9 @@ services: USER_UID: 1000 USER_GID: 1000 + # Change this if you want zsh as your shell + INSTALL_ZSH: false + # Volume directory for hosted files. This directory is created in the Dockerfile with proper permissions. This is set as an env-var in the Dockerfile HOST_DIR: /dist @@ -20,7 +23,7 @@ services: TARGET_URL: http://localhost:3000 # DB info - MONGO_URI: mongodb://db:27017 + MONGO_URI: mongodb://aocov-db:27017 MONGO_DB: ao-coverage # App configuration @@ -37,7 +40,7 @@ services: command: sleep infinity # Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function. - network_mode: service:db + network_mode: service:aocov-db # Uncomment the next line to use a non-root user for all processes. user: node @@ -45,7 +48,7 @@ services: # Use "forwardPorts" in **devcontainer.json** to forward an app port locally. # (Adding the "ports" property to this file will not forward from a Codespace.) - db: + aocov-db: image: mongo:latest restart: unless-stopped volumes: -- cgit