Update docker-compose config for HyperV compatibility (owner issues are avoided by using named volumes).

This commit is contained in:
dlage committed 2020-08-21 15:33:49 +01:00
1 parent c1130c84e5
commit 8568811c7d
3 files changed
+7 -4

No files matched your search

+6 -2
View File
@@ -3,7 +3,7 @@ services:
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
- psql:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
web:
@@ -11,7 +11,11 @@ services:
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/myapp
- webtmp:/myapp/tmp
ports:
- "3000:3000"
depends_on:
- db
- db
volumes:
psql:
webtmp: