Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- image: postgres
- restart: always
- environment:
- POSTGRES_USER: root
- POSTGRES_PASSWORD: 12345
- POSTGRES_DB: plataforma_staging
- app:
- image: plataforma_api:0.1
- build:
- context: .
- dockerfile: ./docker/app/Dockerfile
- command: bundle exec puma -C config/puma.rb
- depends_on:
- - db
- environment:
- PUMA_PORT: 80
- PLATAFORMA_USERNAME: root
- PLATAFORMA_DATABASE: plataforma_staging
- PLATAFORMA_PASSWORD: 12345
- PLATAFORMA_HOST: db
- ports:
- - 80:80
- db_development:
- image: postgres
- environment:
- POSTGRES_USER: root
- POSTGRES_PASSWORD: 12345
- POSTGRES_DB: plataforma_development
- expose:
- - 5432
- app_development:
- image: development_api:0.1
- build:
- context: .
- dockerfile: ./docker/app/Dockerfile.development
- volumes:
- - .:/app
- depends_on:
- - db_development
- ports:
- - "3000:3000"
- links:
- - db_development
- command: rails server -p 3000 -b '0.0.0.0'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement