Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- image: postgres:alpine
- container_name: CursoPostgreSQL
- ports:
- - "5432:5432"
- environment:
- POSTGRES_PASSWORD: password
- POSTGRES_USER: appuser
- POSTGRES_DB: myApp
- volumes:
- - ./data:/var/lib/postgresql
- app:
- build: .
- container_name: CursoRails
- command: bundle exec rails s -p 3000 -b '0.0.0.0'
- volumes:
- - ".:/myApp"
- ports:
- - "3000:3000"
- depends_on:
- - db
- links:
- - db
- environment:
- DB_USER: root
- DB_NAME: myApp
- DB_PASSWORD: password
- DB_HOST: db
Add Comment
Please, Sign In to add comment