Skip to content

Commit

Permalink
feat: created CouchDB docker-compose file.
Browse files Browse the repository at this point in the history
  • Loading branch information
luisaveiro committed Jan 9, 2023
1 parent cdab52a commit 6b04b87
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions compose.couchdb.yaml
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"

0 comments on commit 6b04b87

Please sign in to comment.