diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2022-06-10 01:07:54 +0000 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2022-06-10 01:07:54 +0000 |
| commit | e7043b3ea7025c302925f3b81e2d6f1b642b0811 (patch) | |
| tree | 7d270f3af5562904a02a56c71dc091ee0c13ca8d /.devcontainer/docker-compose.yml | |
| parent | 4af6310a9c42fbc81ab82d6253becf1f3fdeebac (diff) | |
| download | ao-coverage-e7043b3ea7025c302925f3b81e2d6f1b642b0811.tar.gz ao-coverage-e7043b3ea7025c302925f3b81e2d6f1b642b0811.tar.bz2 ao-coverage-e7043b3ea7025c302925f3b81e2d6f1b642b0811.zip | |
Switch back to officially supported devcontainer
Diffstat (limited to '.devcontainer/docker-compose.yml')
| -rw-r--r-- | .devcontainer/docker-compose.yml | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index ddae0c6..ae25fbe 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3' +version: '3.8' services: aocov: @@ -6,12 +6,8 @@ services: context: . dockerfile: Dockerfile args: - # On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000. - USER_UID: 1000 - USER_GID: 1000 - - INSTALL_ZSH: "false" - MONGO_TOOLS_VERSION: 4.2 + VARIANT: 16-bullseye + MONGO_TOOLS_VERSION: 5.0 # Volume directory for hosted files. This directory is created on image build with proper permissions. This is set as an env-var in the Dockerfile HOST_DIR: /dist @@ -36,18 +32,10 @@ services: - ..:/workspace:cached - dev-dist:/dist:cached - # Overrides default command so things don't shut down after the process ends. command: sleep infinity - - # Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function. network_mode: service:aocov-db - - # Uncomment the next line to use a non-root user for all processes. user: node - # Use "forwardPorts" in **devcontainer.json** to forward an app port locally. - # (Adding the "ports" property to this file will not forward from a Codespace.) - aocov-db: image: mongo:latest restart: unless-stopped @@ -58,9 +46,6 @@ services: environment: MONGO_INITDB_DATABASE: ao-coverage - # Add "forwardPorts": ["27017"] to **devcontainer.json** to forward MongoDB locally. - # (Adding the "ports" property to this file will not forward from a Codespace.) - volumes: mongodb-data: node-nm: |
