QutBioacoustics/baw-server

View on GitHub
.devcontainer/docker-compose.yml

Summary

Maintainability
Test Coverage
--- #-------------------------------------------------------------------------------------------------------------

#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
version: "3.8"
services:
  # Update this to the name of the service you want to work with in your docker-compose.yml file
  web:
    # You may want to add a non-root user to your Dockerfile. On Linux, this will prevent
    # new files getting created as root. See https://aka.ms/vscode-remote/containers/non-root-user
    # for the needed Dockerfile updates and then uncomment the next line.
    user: baw_web

    # Uncomment if you want to add a different Dockerfile in the .devcontainer folder
    # build:
    #   context: .
    #   dockerfile: Dockerfile

    # Uncomment if you want to expose any additional ports. The snippet below exposes port 3000.
    # ports:
    #   - 3000:3000
    #group_add:
      # - docker
      # the docker group id on my host is 1001
      # - 1001
    volumes:
      # Update this to wherever you want VS Code to mount the folder of your project
      #- .:/home/baw_web/baw-server
      # Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker-compose for details.
      # - /var/run/docker.sock:/var/run/docker.sock
      - baw-server-vscode-extensions:/root/.vscode-server/extensions
      - baw-server-vscode-bash-history:/commandhistory

    # Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
    # cap_add:
    #   - SYS_PTRACE
    # security_opt:
    #   - seccomp:unconfined
    # Overrides default command so things don't shut down after the process ends.
    command: bash -c 'touch .ready && sleep infinity'
volumes:
  baw-server-vscode-extensions:
  baw-server-vscode-bash-history: