Created
May 16, 2017 00:50
-
-
Save mxmzb/2e1065910c1178fedffb2f15c9ed8c53 to your computer and use it in GitHub Desktop.
mongo instance port stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
# proxy: | |
# image: jwilder/nginx-proxy:latest | |
# ports: | |
# - "80:3000" | |
# volumes: | |
# - "/var/run/docker.sock:/tmp/docker.sock" | |
# | |
# https://github.com/docker/machine/issues/3982 | |
# proxy: | |
# image: nginx | |
# volumes: # mount custom config at runtime | |
# - ./config/nginx.conf:/etc/nginx/conf.d/default.conf | |
# links: | |
# - web:app # "app" is the hostname used in proxy_pass directive | |
# ports: | |
# - 80:3000 | |
web: | |
build: . | |
# command: bundle exec puma -C config/puma.rb | |
command: bundle exec rails s -p 3000 -b '0.0.0.0' | |
volumes: | |
- .:/app:cached | |
# - box | |
# volumes_from: | |
# - box | |
ports: | |
- "80:3000" | |
links: | |
- mongo | |
- redis | |
env_file: .env | |
redis: | |
image: redis | |
mongo: | |
# command: mongod --bind_ip 127.0.0.1 --port 27017 | |
image: mongo | |
# expose: | |
# - "27017" | |
ports: | |
# - "27017:27017" | |
- "127.0.0.1:27017:27017" | |
sidekiq: | |
build: . | |
command: bundle exec sidekiq | |
links: | |
- mongo | |
- redis | |
volumes: | |
- .:/app:cached | |
env_file: .env | |
# box: | |
# image: busybox | |
# volumes: | |
# - /box |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment