aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-09-10 20:45:07 +0100
committerGravatar Chris Lovering <[email protected]>2022-09-11 01:15:23 +0100
commited2639b7860c416ac22435e0d095b45724117a8c (patch)
treededae3a55fbf2f98b963ae5bbb6dde2f4e542e5a
parentUpdate poetry to use 1.2.0 (diff)
Don't mount project root in docker-compose
Now that we are using in-project venvs, mounting the entire project root would cause the host's venv to overwrite the image's if present.
-rw-r--r--docker-compose.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 51b4a698..af882428 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -68,8 +68,9 @@ services:
build:
context: .
dockerfile: dev/Dockerfile
- volumes:
- - .:/app:ro
+ volumes: # Don't do .:/app here to ensure project venv from host doens't overwrite venv in image
+ - ./botcore:/app/botcore:ro
+ - ./bot:/app/bot:ro
tty: true
depends_on:
- web