mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
add sample project in ruby on rails with postgres
Signed-off-by: Lukas Pol <lukaspaespol@gmail.com>
This commit is contained in:
parent
d3c5f28243
commit
4dafb28976
1381 changed files with 2700 additions and 0 deletions
18
ruby_on_rails-postgres/docker-compose.yml
Normal file
18
ruby_on_rails-postgres/docker-compose.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
version: '2'
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
volumes:
|
||||
- ./tmp/db:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: 'username'
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
web:
|
||||
build: .
|
||||
command: bash -c "rm -f tmp/pids/server.pid && sleep 100000"
|
||||
volumes:
|
||||
- .:/myapp
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- db
|
Loading…
Add table
Add a link
Reference in a new issue