Skip to content

Commit

Permalink
mount gdc folder and host home folder read only for more security
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobello committed Aug 25, 2024
1 parent e6dec13 commit 0b81ffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dc-host-home-dir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
services:
dev:
volumes:
- ~:/root/home-host # needed to copy .aws and bin folder from your home if enabled and they exists
- ~:/root/home-host:ro # needed to copy .aws and bin folder from your home if enabled and they exists
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ services:
- DEV_CONTAINER=1.10.23 # used to detect if running inside dev container
volumes:
- /var/run/docker.sock:/var/run/docker.sock # allow container to interact with host docker
- "${GDC_DIR}:/root/gdc-host" # mount gdc folder inside container to get access to compose files
- "${GDC_DIR}:/root/gdc-host:ro" # mount gdc folder inside container to get access to compose files
- bash_history:/root/bash_history # keep bash history between container builds
- persisted:/root/persisted # put things you want to persist between container rebuilds here
- shared:/root/shared # persisted and shared between stacks / containers
Expand Down

0 comments on commit 0b81ffe

Please sign in to comment.