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

Couchdb 3 with Clouseau on Docker? #2604

Closed
pavellzubkov opened this issue Feb 27, 2020 · 6 comments
Closed

Couchdb 3 with Clouseau on Docker? #2604

pavellzubkov opened this issue Feb 27, 2020 · 6 comments

Comments

@pavellzubkov
Copy link

Summary

is there a way to run couchdb 3.0.0 with full text search on docker?
some example docker-compose file or couchdb image with includes clouseau?
yesterday i try to run apache/couchdb:3.0 image and it seems to be work

Desired Behaviour

Possible Solution

Additional context

@willholley
Copy link
Member

There is a ticket in relation to this at apache/couchdb-docker#8. I'm not particularly experienced with Docker Compose but the issue is that Clouseau and CouchDB need to share the same loopback network if running in different containers. This works on Kubernetes when both containers are in the same pod - I don't know if there's a way to do it in Docker Compose.

Another option is to use a combined container which includes both components. IBM publish one here.

@pavellzubkov
Copy link
Author

thank you!
ibmcom/couchdb3 image useful for playground with full text search. but this image can't open databases created by apache/couchdb:3.0 image.
my docker compose file

version: '3'

services:
  db:
        #ibmcom/couchdb3 treehouses/couchdb:2.3.1 apache/couchdb:3.0
        image: ibmcom/couchdb3
        restart: always   
        volumes: 
            - ./etc:/opt/couchdb/etc/local.d  
            - ./data:/opt/couchdb/data
            - ./log:/opt/couchdb/var/log
        ports:
          - "5984:5984"
        environment:
          - 'COUCHDB_USER=admin'
          - 'COUCHDB_PASSWORD=password'

@willholley
Copy link
Member

willholley commented Feb 27, 2020

the ibm container runs CouchDB as uid 1001:1001 by default - the CouchDB community container runs Couch as uid 5984:5984, so you would need to set permissions on your mounted volumes appropriately. There shouldn't be any problem reading the database files when using appropriate permissions.

@wohali
Copy link
Member

wohali commented Feb 27, 2020

I think @willholley means that the Apache CouchDB container runs Couch as 5984:5984.

@willholley
Copy link
Member

ha yes - thanks for the catch @wohali

@wohali
Copy link
Member

wohali commented Mar 13, 2020

Looks resolved, closing.

@wohali wohali closed this as completed Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants