1
0
Fork 0
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:
Lukas Pol 2020-04-14 19:41:55 -03:00
parent d3c5f28243
commit 4dafb28976
1381 changed files with 2700 additions and 0 deletions

View 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