Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change port #2

Closed
garrensmith opened this issue Apr 25, 2017 · 2 comments
Closed

Change port #2

garrensmith opened this issue Apr 25, 2017 · 2 comments

Comments

@garrensmith
Copy link
Member

From docker-couchdb: klaemo/docker-couchdb#108

Hello, we're deploying several couchdb images with docker-compose, so we need them to be running with a different port to the default one, how can this be archived?

Currently I'm trying like this:

version: '2'
services:
  couchdb:
    image: klaemo/couchdb:2.0.0
    ports:
      - '3000:5984'

  user-crud:
    build: .
    environment:
      PORT: '3000'
      ROOT_URL: 'couchdb'
    ports:
      - '4000:4000'
    links:
      - couchdb
@wohali
Copy link
Member

wohali commented Aug 22, 2017

Does what you suggested above not work?

@wohali
Copy link
Member

wohali commented Sep 19, 2017

The approach described works, however multiple ports must be remapped (5984 5986 4369 9100-9200). In general the 2.x image line is intended for deployment via something like Kubernetes, not for multiple Docker images on a bare unmanaged host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants