Sha256: eb58030b7bd2d22a85a61143402241dc9d0b5fc53fca8ce90dd21b4bf85007d9

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

version: '3'

services:
  app:
    build: 
      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_NODE: "false"
    environment:
      - MONGODB_URI=mongodb://mongodb:27017/tdiary_test
    volumes:
      # Forwards the local Docker socket to the container.
      - /var/run/docker.sock:/var/run/docker-host.sock 
      # Update this to wherever you want VS Code to mount the folder of your project
      - ..:/workspaces/mongodb:cached

    # Overrides default command so things don't shut down after the process ends.
    # entrypoint: /usr/local/share/docker-init.sh
    command: sleep infinity 

    # Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
    # cap_add:
    #  - SYS_PTRACE
    # security_opt:
    #   - seccomp:unconfined

    # Uncomment the next line to use a non-root user for all processes.
    # user: vscode

    # Use "forwardPorts" in **devcontainer.json** to forward an app port locally. 
    # (Adding the "ports" property to this file will not forward from a Codespace.)
  mongodb:
    image: mongo:4.4
    ports:
      - 27017:27017

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tdiary-io-mongodb-5.1.1 .devcontainer/docker-compose.yml