Skip to content

Instantly share code, notes, and snippets.

@fr46pm
fr46pm / gist:1656f9a5f5ab5dbbe54354759b1ed96e
Created February 15, 2023 10:26 — forked from shaiguitar/gist:627d52ebc0c03af488477b5d636a8909
Using docker compose to mount current working directory dynamically into the container
# mount volume PWD on host to /app in container.
shai@lappy ~/tmp/example-working-docker-compose-environment-vars [master *] ± % cat docker-compose.yml
version: "3"
services:
some_server:
...
volumes:
- $PWD:/app