Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ruby:2.3.3-alpine
- RUN apk update && apk add build-base nodejs postgresql-dev git curl-dev libxml2-dev
- RUN mkdir /app
- WORKDIR /app
- COPY Gemfile Gemfile.lock ./
- RUN gem install bundler --version '1.14.6'
- #RUN gem install bundler
- RUN bundle install --full-index
- #RUN bundle update
- COPY . .
- #####################
- version: '2'
- services:
- postgres:
- image: 'postgres:9.6-alpine'
- environment:
- POSTGRES_USER: 'rp_base'
- POSTGRES_PASSWORD: 'yourpassword'
- ports:
- - '5432:5432'
- volumes:
- - 'postgres:/var/lib/postgresql/data'
- # redis:
- # image: 'redis:3.2-alpine'
- # command: redis-server --requirepass yourpassword
- # ports:
- # - '6379:6379'
- # volumes:
- # - 'redis:/data'
- website:
- depends_on:
- - 'postgres'
- # - 'redis'
- build: .
- ports:
- - '3000:3000'
- volumes:
- - '.:/app'
- # env_file:
- # - '.env'
- volumes:
- redis:
- postgres:⏎
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement