version: "{{ compose_version }}" networks: proxy: name: "{{ traefik_network }}" volumes: db: name: couchdb services: couchdb: image: "couchdb:{{ couchdb_version }}" container_name: couchdb networks: - proxy volumes: - db:/opt/couchdb/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment: COUCHDB_USER: "{{ couchdb_user }}" COUCHDB_PASSWORD: "{{ couchdb_password }}" labels: traefik.http.routers.couchdb.entrypoints: websecure traefik.http.routers.couchdb.rule: "Host(`{{ couchdb_subdomain }}.{{ domain_name }}`)" traefik.http.services.couchdb.loadbalancer.server.port: 5984 traefik.enable: true restart: unless-stopped