Created
April 8, 2017 23:06
-
-
Save thnery/694cfc494dfa2cb5723540059b06162f to your computer and use it in GitHub Desktop.
docker compose sample
This file contains 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: '2' | |
services: | |
db: | |
image: gordlea/postgis:9.5 | |
environment: | |
- POSTGRES_DB=myapp_api_development | |
- POSTGRES_USER=root | |
dbtest: | |
image: gordlea/postgis:9.5 | |
environment: | |
- POSTGRES_DB=myapp_api_test | |
- POSTGRES_USER=root | |
web: | |
build: . | |
command: bin/rails s --port 3000 --binding 0.0.0.0 | |
volumes: | |
- .:/app | |
ports: | |
- "3000:3000" | |
links: | |
- db | |
- dbtest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment