Created
August 14, 2016 23:24
-
-
Save yuki-yano/afdde0759ea21bb0aff327bacfd108b5 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: '2' | |
| services: | |
| web: &app_base | |
| build: | |
| context: . | |
| dockerfile: Dockerfile.rails_development | |
| args: | |
| - APP_HOME=${PWD} | |
| ports: | |
| - "3000:3000" | |
| command: rails s -b 0.0.0.0 | |
| links: | |
| - db | |
| volumes: | |
| - .:${PWD} | |
| spring: | |
| <<: *app_base | |
| ports: [] | |
| command: spring server | |
| stdin_open: true | |
| tty: true | |
| pid: host | |
| environment: | |
| SPRING_SOCKET: /tmp/spring/spring.sock | |
| volumes: | |
| - .:${PWD} | |
| - spring:/tmp/spring | |
| node: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile.node_development | |
| args: | |
| - APP_HOME=${PWD} | |
| ports: | |
| - "3500:3500" | |
| command: npm run build:dev | |
| volumes: | |
| - .:${PWD} | |
| - /${PWD}/node_modules | |
| db: | |
| image: mysql:5.6 | |
| environment: | |
| MYSQL_ROOT_PASSWORD: pw | |
| volumes: | |
| spring: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment