Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker compose file Ruby Meeting
version: '2'
services:
postgres:
restart: always
image: kiasaki/alpine-postgres:9.5
environment:
- POSTGRES_USER:'root'
- POSTGRES_PASSWORD:'root'
ports:
- '5432:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
solr:
image: standout/sunspot-solr
ports:
- "8983:8983"
minio:
image: minio/minio
ports:
- "9000:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /export
volumes:
- ./fakes3/.minio/data:/export
- ./fakes3/.minio/config:/root/.minio
memcached:
image: memcached
pgadmin:
image: thajeztah/pgadmin4
ports:
- "5050:5050"
volumes:
- ./pgadmin:/pgadmin
redis:
image: redis:4.0.2
#volumes:
# - ./redis.conf:/usr/local/etc/redis/redis.conf
web:
build: .
environment:
- POSTGRESQL_HOST=postgres
- POSTGRESQL_USER=postgres
stdin_open: true
#entrypoint: /bin/bash
command: bash -c "webpack && bundle exec puma -t 2:2 -p 3000 && rm -rf public/packs/* || true && bundle exec rake react_on_rails:locale && bin/webpack -w"
#command: bash -c "RAILS_ENV=docker bundle install"
#tty: true
#entrypoint: echo
#command: echo From compose
ports:
- "3000:3000"
links:
- postgres
- redis
- memcached
- solr
- worker
- pgadmin
- minio
- websocket
volumes:
- .:/defectradar:cached
- ./system:/nfsshare:delegated
#extra_hosts:
# - "defectradar-local.s3.localhost:192.168.99.100"
worker:
build: .
environment:
- POSTGRESQL_HOST=postgres
- POSTGRESQL_USER=postgres
#stdin_open: true
#entrypoint: /bin/bash
#entrypoint: /bin/bash
command: bash -c "bundle exec rake resque:pool"
volumes:
- .:/defectradar
- ./system:/nfsshare:delegated
# spring:
# build: .
# environment:
# - RAILS_ENV=docker_test
# command: bash -c "bundle exec zeus start"
# volumes:
# - .:/defectradar
# pid: host
websocket:
build: .
environment:
- POSTGRESQL_HOST=postgres
- POSTGRESQL_USER=postgres
#stdin_open: true
#entrypoint: /bin/bash
#entrypoint: /bin/bash
ports:
- "9292:9292"
command: bash -c "RAILS_ENV=development bundle exec thin -C config/private_pub_thin.yml start"
volumes:
- .:/defectradar
#volumes:
# nfsshare:
#docker-compose run --service-ports web
#RAILS_ENV=docker bundle exec rails s -b '0.0.0.0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.