Init couch db

This commit is contained in:
adrinr 2023-01-31 12:16:23 +00:00
parent 9c04ae5f85
commit 8eb6ef4d76
1 changed files with 13 additions and 0 deletions

View File

@ -37,6 +37,19 @@ services:
timeout: 20s timeout: 20s
retries: 3 retries: 3
couch-init:
image: curlimages/curl
environment:
PUT_CALL: "curl -u ${COUCH_DB_USER}:${COUCH_DB_PASSWORD} -X PUT couchdb-service:5984"
depends_on:
- couchdb-service
command:
[
"sh",
"-c",
"sleep 10 && $${PUT_CALL}/_users && $${PUT_CALL}/_replicator; fg;",
]
redis-service: redis-service:
restart: on-failure restart: on-failure
image: redis image: redis