github.com/go-kivik/kivik/v4@v4.3.2/docker-compose.yml (about) 1 version: '3.1' 2 3 x-common-env: &common-env 4 COUCHDB_USER: admin 5 COUCHDB_PASSWORD: abc123 6 7 x-healthcheck: &healthcheck 8 test: ["CMD-SHELL", "curl -f http://localhost:5984/_up || exit 1"] 9 interval: 1m 10 timeout: 2s 11 retries: 3 12 start_period: 10s 13 14 services: 15 couch22: 16 container_name: couch22 17 image: couchdb:2.2.0 18 restart: always 19 environment: 20 <<: *common-env 21 ports: 22 - "6002:5984" 23 healthcheck: 24 <<: *healthcheck 25 couch22setup: 26 image: curlimages/curl:8.5.0 27 restart: "no" 28 environment: 29 <<: *common-env 30 depends_on: 31 couch22: 32 condition: service_healthy 33 volumes: 34 - ./script/complete_couch2.sh:/complete_couch2.sh 35 entrypoint: /complete_couch2.sh 36 command: http://couch22:5984/ 37 38 couch23: 39 container_name: couch23 40 image: couchdb:2.3.1 41 restart: always 42 environment: 43 <<: *common-env 44 ports: 45 - "6003:5984" 46 healthcheck: 47 <<: *healthcheck 48 couch23setup: 49 image: curlimages/curl:8.5.0 50 restart: "no" 51 environment: 52 <<: *common-env 53 depends_on: 54 couch22: 55 condition: service_healthy 56 volumes: 57 - ./script/complete_couch2.sh:/complete_couch2.sh 58 entrypoint: /complete_couch2.sh 59 command: http://couch23:5984/ 60 61 couch30: 62 container_name: couch30 63 image: couchdb:3.0.0 64 restart: always 65 environment: 66 <<: *common-env 67 ports: 68 - "6004:5984" 69 healthcheck: 70 <<: *healthcheck 71 couch30setup: 72 image: curlimages/curl:8.5.0 73 restart: "no" 74 environment: 75 <<: *common-env 76 depends_on: 77 couch22: 78 condition: service_healthy 79 volumes: 80 - ./script/complete_couch2.sh:/complete_couch2.sh 81 entrypoint: /complete_couch2.sh 82 command: http://couch30:5984/ 83 84 couch31: 85 container_name: couch31 86 image: couchdb:3.1.2 87 restart: always 88 environment: 89 <<: *common-env 90 ports: 91 - "6005:5984" 92 healthcheck: 93 <<: *healthcheck 94 couch31setup: 95 image: curlimages/curl:8.5.0 96 restart: "no" 97 environment: 98 <<: *common-env 99 depends_on: 100 couch22: 101 condition: service_healthy 102 volumes: 103 - ./script/complete_couch2.sh:/complete_couch2.sh 104 entrypoint: /complete_couch2.sh 105 command: http://couch31:5984/ 106 107 couch32: 108 container_name: couch32 109 image: couchdb:3.2.3 110 restart: always 111 environment: 112 <<: *common-env 113 ports: 114 - "6006:5984" 115 healthcheck: 116 <<: *healthcheck 117 couch32setup: 118 image: curlimages/curl:8.5.0 119 restart: "no" 120 environment: 121 <<: *common-env 122 depends_on: 123 couch22: 124 condition: service_healthy 125 volumes: 126 - ./script/complete_couch2.sh:/complete_couch2.sh 127 entrypoint: /complete_couch2.sh 128 command: http://couch32:5984/ 129 130 couch33: 131 container_name: couch33 132 image: couchdb:3.3.3 133 restart: always 134 environment: 135 <<: *common-env 136 ports: 137 - "6007:5984" 138 healthcheck: 139 <<: *healthcheck 140 couch33setup: 141 image: curlimages/curl:8.5.0 142 restart: "no" 143 environment: 144 <<: *common-env 145 depends_on: 146 couch22: 147 condition: service_healthy 148 volumes: 149 - ./script/complete_couch2.sh:/complete_couch2.sh 150 entrypoint: /complete_couch2.sh 151 command: http://couch33:5984/