Skip to content

Instantly share code, notes, and snippets.

@askareija
Last active March 1, 2024 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save askareija/ef195ab9069c0896cefe0250c900e7bb to your computer and use it in GitHub Desktop.
Save askareija/ef195ab9069c0896cefe0250c900e7bb to your computer and use it in GitHub Desktop.
Newest docker compose file for Visual Studio Code Dev Container
version: '3.9'
services:
app:
networks:
- proxynet
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: .
dockerfile: Dockerfile
volumes:
- ../..:/workspaces:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
networks:
proxynet:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment