Skip to content

Instantly share code, notes, and snippets.

@yuki-yano
Created August 14, 2016 23:24
Show Gist options
  • Select an option

  • Save yuki-yano/afdde0759ea21bb0aff327bacfd108b5 to your computer and use it in GitHub Desktop.

Select an option

Save yuki-yano/afdde0759ea21bb0aff327bacfd108b5 to your computer and use it in GitHub Desktop.
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