Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

47 lines (44 sloc) 863 Bytes
version: '2'
services:
rails: &app_base
build:
context: .
dockerfile: "Dockerfile.dev"
command: ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"]
env_file:
- "./.env.dev"
volumes:
- ".:/app"
volumes_from:
- data
ports:
- "3333:3000"
depends_on:
- db
tty: true
stdin_open: true
spring:
<<: *app_base
command: ["bundle", "exec", "spring", "server"]
ports: []
tty: false
stdin_open: false
db:
image: "postgres:9.6.2"
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=password"
volumes_from:
- data
ports:
- "5432:5432"
data:
image: "busybox"
volumes:
- "db:/var/lib/postgresql/data"
- "bundle:/usr/local/bundle"
volumes:
db:
driver: local
bundle:
driver: local
You can’t perform that action at this time.