···11+version: '3.7'
22+services:
33+ app:
44+ #volumes:
55+ # # Add local mounts here
66+ # - /home/myUser/homelab:/filesOnServer
+41
.devcontainer/compose.yml
···11+version: '3.7'
22+services:
33+ # Update this to the name of the service you want to work with in your docker-compose.yml file
44+ app:
55+ # Uncomment if you want to override the service's Dockerfile to one in the .devcontainer
66+ # folder. Note that the path of the Dockerfile and context is relative to the *primary*
77+ # docker-compose.yml file (the first in the devcontainer.json "dockerComposeFile"
88+ # array). The sample below assumes your primary file is in the root of your project.
99+ #
1010+ # build:
1111+ # context: .
1212+ # dockerfile: .devcontainer/Dockerfile
1313+1414+ image: mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm
1515+1616+ volumes:
1717+ # Update this to wherever you want VS Code to mount the folder of your project
1818+ - ..:/workspaces:cached
1919+ command: sleep infinity
2020+2121+ # Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust.
2222+ # cap_add:
2323+ # - SYS_PTRACE
2424+ # security_opt:
2525+ # - seccomp:unconfined
2626+2727+ # Overrides default command so things don't shut down after the process ends.
2828+ #command: sleep infinity
2929+ socket-proxy:
3030+ image: lscr.io/linuxserver/socket-proxy:latest
3131+ environment:
3232+ - CONTAINERS=1
3333+ - INFO=1
3434+ - POST=0
3535+ - PING=1
3636+ - VERSION=1
3737+ volumes:
3838+ - /var/run/docker.sock:/var/run/docker.sock:ro
3939+ read_only: true
4040+ tmpfs:
4141+ - /run
+8-1
.devcontainer/devcontainer.json
···33{
44 "name": "Node.js",
55 // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66- "image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm",
66+ "dockerComposeFile": [
77+ "compose.yml",
88+ "compose.mounts.yml"
99+ ],
1010+1111+ "service": "app",
1212+1313+ "workspaceFolder": "/workspaces",
714815 // Features to add to the dev container. More info: https://containers.dev/features.
916 // "features": {},