1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

Add sample rails + postgresql application

Signed-off-by: Alex Koch <alex@esparklearning.com>
This commit is contained in:
Alex Koch 2022-09-15 10:14:13 -05:00
parent d9bea6d801
commit bbad983a6e
No known key found for this signature in database
84 changed files with 1570 additions and 1 deletions

View file

@ -0,0 +1,18 @@
services:
app:
build:
context: app
command: bash -c "bundle exec rails db:migrate && bundle exec rails server -b 0.0.0.0"
ports:
- "3000:3000"
depends_on:
- database
database:
image: postgres:14
volumes:
- postgres:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: app_development
volumes:
postgres: