-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: created CouchDB docker-compose file.
- Loading branch information
1 parent
cdab52a
commit 6b04b87
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#-------------------------------------------------------------------------- | ||
# ! The Docker Compose file is configured for local environments. | ||
# ! Do not deploy this Docker Compose file in production environments. | ||
#-------------------------------------------------------------------------- | ||
|
||
# Docker compose version https://docs.docker.com/compose/compose-file | ||
version: "3.9" | ||
|
||
# The Docker services. | ||
services: | ||
# The couchDB database container. | ||
couchdb: | ||
# https://hub.docker.com/_/couchdb | ||
image: couchdb:latest | ||
container_name: "${COUCHDB_CONTAINER_NAME:-couchdb}" | ||
environment: | ||
COUCHDB_USER: "${COUCHDB_USERNAME}" | ||
COUCHDB_PASSWORD: "${COUCHDB_PASSWORD}" | ||
networks: | ||
- local | ||
# Map the database container exposed port to the host port. | ||
ports: | ||
- ${COUCHDB_PORT:-5984}:5984 | ||
volumes: | ||
- couchdb_data:/opt/couchdb/data | ||
|
||
# The Docker networks. | ||
networks: | ||
local: | ||
driver: "bridge" | ||
name: ${NETWORK_NAME:-local_dbs_network} | ||
|
||
# The Docker volumes. | ||
volumes: | ||
couchdb_data: | ||
driver: "local" | ||
name: "${COUCHDB_CONTAINER_NAME:-couchdb}_data" |