Skip to content

Commit

Permalink
docker-compose: Mark volumes as ro, disable nocopy
Browse files Browse the repository at this point in the history
> The nocopy modifier is for when you are creating a volume
> and data already exists in the container's path, you can
> specify if you want that data copied when the volume is
> created.

https://stackoverflow.com/a/38288382
  • Loading branch information
ix5 committed May 27, 2022
1 parent f43368b commit bb647e3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ services:
- type: bind
source: ./contrib/isso-dev.cfg
target: /config/isso-dev.cfg
volume:
nocopy: true
read_only: true

# Jest and puppeteer end-to-end integration test runner
isso-client:
Expand All @@ -54,8 +53,7 @@ services:
- type: bind
source: ./package.json
target: /src/package.json
volume:
nocopy: true
read_only: true
- type: bind
source: ./isso/js/
target: /src/isso/js/
Expand All @@ -64,8 +62,6 @@ services:
source: ./isso/js/tests/integration/screenshots/
target: /src/isso/js/tests/integration/screenshots/
read_only: false # needed for generating screenshots during e2e tests
volume:
nocopy: false
depends_on:
- isso-server

Expand Down

0 comments on commit bb647e3

Please sign in to comment.