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

This commit is contained in:
2020-08-21 15:33:49 +01:00
parent c1130c84e5
commit 8568811c7d
3 changed files with 7 additions and 4 deletions
-1
View File
@@ -1,3 +1,2 @@
<h1>Pages#home</h1>
<p>Find me in app/views/pages/home.html.erb</p>
<p>Find me in app/views/pages/home.html.erb</p>
+1 -1
View File
@@ -5,4 +5,4 @@
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)
admin = Admin.create([{email: 'admin@example.org', password: 'password'}])
admin = Admin.create([{email: 'admin@example.org', password: 'password', confirmed_at: '2020-08-21 11:08:12'}])
+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: