awesome-compose/rails-postgres/compose.yaml

18 lines
386 B
YAML
Raw Normal View History

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