Skip to content

Instantly share code, notes, and snippets.

@buurzx
Created September 13, 2018 09:57
Show Gist options
  • Save buurzx/da2b4662f3d03e16e344c981fc8e97a5 to your computer and use it in GitHub Desktop.
Save buurzx/da2b4662f3d03e16e344c981fc8e97a5 to your computer and use it in GitHub Desktop.
docker-compose.yml
version: '3'
services:
db:
env_file: .env.docker.local
image: postgres:9.6-alpine
ports:
- "5432:5432"
volumes:
- database:/var/lib/postgresql/data
web:
tty: true
stdin_open: true
env_file: .env.docker.local
build: .
command: bundle exec rails s -b 0.0.0.0
ports:
- "3000:3000"
depends_on:
- db
links:
- db:db.local
volumes:
- .:/myapp
- bundle:/usr/local/bundle
- ../lubyanka:/lubyanka
- ../papers:/papers
- ../mainsms_api:/mainsms_api
- ../../../.ssh/:/root/.ssh
volumes:
database:
bundle:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment