{"id":13558905,"url":"https://github.com/frodenas/docker-couchdb","last_synced_at":"2025-04-03T14:30:41.303Z","repository":{"id":19128565,"uuid":"22358085","full_name":"frodenas/docker-couchdb","owner":"frodenas","description":"A Dockerfile that produces a Docker Image for CouchDB","archived":true,"fork":false,"pushed_at":"2014-07-30T19:45:46.000Z","size":156,"stargazers_count":11,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-04T10:43:34.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frodenas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-28T21:11:13.000Z","updated_at":"2024-08-13T18:00:04.000Z","dependencies_parsed_at":"2022-09-14T07:00:38.525Z","dependency_job_id":null,"html_url":"https://github.com/frodenas/docker-couchdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frodenas%2Fdocker-couchdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frodenas%2Fdocker-couchdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frodenas%2Fdocker-couchdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frodenas%2Fdocker-couchdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frodenas","download_url":"https://codeload.github.com/frodenas/docker-couchdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247018265,"owners_count":20869981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:05:13.441Z","updated_at":"2025-04-03T14:30:41.048Z","avatar_url":"https://github.com/frodenas.png","language":"Shell","funding_links":[],"categories":["Shell","others"],"sub_categories":[],"readme":"# CouchDB Dockerfile\n\nA Dockerfile that produces a Docker Image for [Apache CouchDB](http://couchdb.apache.org/).\n\n## CouchDB version\n\nThe `master` branch currently hosts CouchDB 1.6.\n\nDifferent versions of CouchDB are located at the github repo [branches](https://github.com/frodenas/docker-couchdb/branches).\n\n## Usage\n\n### Build the image\n\nTo create the image `frodenas/couchdb`, execute the following command on the `docker-couchdb` folder:\n\n```\n$ docker build -t frodenas/couchdb .\n```\n\n### Run the image\n\nTo run the image and bind to host port 5984:\n\n```\n$ docker run -d --name couchdb -p 5984:5984 frodenas/couchdb\n```\n\nThe first time you run your container, a new user `couchdb` with all privileges will be created with a random password.\nTo get the password, check the logs of the container by running:\n\n```\ndocker logs \u003cCONTAINER_ID\u003e\n```\n\nYou will see an output like the following:\n\n```\n========================================================================\nCouchDB User: \"couchdb\"\nCouchDB Password: \"jPp5fBJySeuJPTN8\n========================================================================\n```\n\n#### Credentials\n\nIf you want to preset credentials instead of a random generated ones, you can set the following environment variables:\n\n* `COUCHDB_USERNAME` to set a specific username\n* `COUCHDB_PASSWORD` to set a specific password\n\nOn this example we will preset our custom username and password:\n\n```\n$ docker run -d \\\n    --name couchdb \\\n    -p 5984:5984 \\\n    -e COUCHDB_USERNAME=myusername \\\n    -e COUCHDB_PASSWORD=mypassword \\\n    frodenas/couchdb\n```\n\n#### Databases\n\nIf you want to create a database at container's boot time, you can set the following environment variables:\n\n* `COUCHDB_DBNAME` to create a database\n\nOn this example we will preset our custom username and password and we will create a database:\n\n```\n$ docker run -d \\\n    --name couchdb \\\n    -p 5984:5984 \\\n    -e COUCHDB_USERNAME=myusername \\\n    -e COUCHDB_PASSWORD=mypassword \\\n    -e COUCHDB_DBNAME=mydb \\\n    frodenas/couchdb\n```\n\n#### Persistent data\n\nThe CouchDB server is configured to store data in the `/data` directory inside the container. You can map the\ncontainer's `/data` volume to a volume on the host so the data becomes independent of the running container:\n\n```\n$ mkdir -p /tmp/couchdb\n$ docker run -d \\\n    --name couchdb \\\n    -p 5984:5984 \\\n    -v /tmp/couchdb:/data \\\n    frodenas/couchdb\n```\n\n## Copyright\n\nCopyright (c) 2014 Ferran Rodenas. See [LICENSE](https://github.com/frodenas/docker-couchdb/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrodenas%2Fdocker-couchdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrodenas%2Fdocker-couchdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrodenas%2Fdocker-couchdb/lists"}