Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- image: postgres:9.6
- ports:
- - "5432"
- environment:
- POSTGRES_PASSWORD: postgres
- POSTGRES_USER: postgres
- volumes:
- - 'postgres:/var/lib/postgresql/data'
- redis:
- image: redis:latest
- #command: redis-server --requirepass neM4toad
- ports:
- - "6379"
- volumes:
- - 'redis:/var/lib/redis/data'
- app:
- build: .
- env_file: config/containers/env
- volumes:
- - .:/var/www/nemctl
- environment:
- RAILS_ENV: $RAILS_ENV
- ports:
- - "3000"
- depends_on:
- - db
- - redis
- dj:
- build:
- context: .
- dockerfile: config/containers/dj/Dockerfile
- env_file: config/containers/env
- volumes:
- - .:/var/www/nemctl
- environment:
- RAILS_ENV: $RAILS_ENV
- depends_on:
- - db
- - redis
- - app
- web:
- build:
- context: .
- dockerfile: config/containers/nginx/Dockerfile
- ports:
- - "81:80"
- depends_on:
- - app
- volumes_from:
- - app
- # cable:
- # depends_on:
- # - 'redis'
- # build: .
- # env_file: config/containers/env
- # command: puma -p 28080 cable/config.ru
- # ports:
- # - '28080:28080'
- # volumes:
- # - .:/var/www/nemctl
- volumes:
- redis:
- postgres:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement