Last active
March 1, 2024 03:39
-
-
Save askareija/ef195ab9069c0896cefe0250c900e7bb to your computer and use it in GitHub Desktop.
Newest docker compose file for Visual Studio Code Dev Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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