Created
March 27, 2020 00:05
-
-
Save samuelloza/6cd58a61b663557187935a8a2ef930f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: postgres:9.6 | |
environment: | |
POSTGRES_PASSWORD: mysecretpassword | |
ports: | |
- "5432:5432" | |
volumes: | |
- postgres_data:/var/lib/postgresql/data | |
web: | |
build: | |
context: ./rails/ | |
working_dir: /mnt/rails | |
env_file: .env | |
command: bundle exec rails s -p 5000 -b '0.0.0.0' | |
volumes: | |
- ./rails:/mnt/rails | |
ports: | |
- "80:5000" | |
links: | |
- db | |
depends_on: | |
- db | |
volumes: | |
postgres_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment