Skip to content

Instantly share code, notes, and snippets.

@simmogs
Created November 22, 2016 17:49
Show Gist options
  • Save simmogs/7ce5f9b59d6737b3d560a9c25bb689c8 to your computer and use it in GitHub Desktop.
Save simmogs/7ce5f9b59d6737b3d560a9c25bb689c8 to your computer and use it in GitHub Desktop.
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment