Created
September 13, 2018 09:57
-
-
Save buurzx/da2b4662f3d03e16e344c981fc8e97a5 to your computer and use it in GitHub Desktop.
docker-compose.yml
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: '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