Update docker-compose config for HyperV compatibility (owner issues are avoided by using named volumes).
This commit is contained in:
@@ -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
@@ -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
@@ -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:
|
||||
Reference in New Issue
Block a user