Init couch db
This commit is contained in:
parent
9c04ae5f85
commit
8eb6ef4d76
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue