diff --git a/compose.couchdb.yaml b/compose.couchdb.yaml new file mode 100644 index 0000000..2a90237 --- /dev/null +++ b/compose.couchdb.yaml @@ -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"