2022-03-03 12:13:31 +01:00
|
|
|
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 }}`)"
|
2023-05-24 18:48:46 +02:00
|
|
|
traefik.http.routers.couchdb.middlewares: cors@docker
|
2022-03-03 12:13:31 +01:00
|
|
|
traefik.http.services.couchdb.loadbalancer.server.port: 5984
|
2023-05-24 18:48:46 +02:00
|
|
|
traefik.http.middlewares.cors.headers.accessControlAllowOriginList: https://tempo.agate.blue
|
|
|
|
traefik.http.middlewares.cors.headers.accessControlAllowCredentials: true
|
|
|
|
# Cannot use wildcards with creds, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
|
|
|
|
traefik.http.middlewares.cors.headers.accessControlAllowHeaders: "Content-Type"
|
|
|
|
traefik.http.middlewares.cors.headers.accessControlAllowMethods: GET, OPTIONS, POST, PUT, DELETE
|
2022-03-03 12:13:31 +01:00
|
|
|
traefik.enable: true
|
|
|
|
restart: unless-stopped
|