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:
parent
d9bea6d801
commit
bbad983a6e
84 changed files with 1570 additions and 1 deletions
18
rails-postgres/.docker/docker-compose.yaml
Normal file
18
rails-postgres/.docker/docker-compose.yaml
Normal 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:
|
Loading…
Add table
Add a link
Reference in a new issue