services: mine-couchdb: container_name: mine-couchdb image: couchdb:3.3.3 restart: unless-stopped ports: - "127.0.0.1:21210:5984" volumes: # Updated to use relative paths based on the yml file location - ./etc:/opt/couchdb/etc/local.d - ./data:/opt/couchdb/data environment: - TZ=America/New_York - COUCHDB_USER=${COUCHDB_USER} - COUCHDB_PASSWORD=${COUCHDB_PASSWORD} - COUCHDB_SECRET=${COUCHDB_SECRET} logging: driver: "json-file" options: max-size: "10m" max-file: "3" networks: user_default: ipv4_address: 172.18.0.4 networks: user_default: external: true