Skip to content

Instantly share code, notes, and snippets.

@thnery
Created April 8, 2017 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thnery/694cfc494dfa2cb5723540059b06162f to your computer and use it in GitHub Desktop.
Save thnery/694cfc494dfa2cb5723540059b06162f to your computer and use it in GitHub Desktop.
docker compose sample
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