healthcheck for etherpad sql
This commit is contained in:
@@ -29,6 +29,10 @@ services:
|
|||||||
MYSQL_COLLATION: utf8_general_ci
|
MYSQL_COLLATION: utf8_general_ci
|
||||||
MYSQL_CHARSET: utf8
|
MYSQL_CHARSET: utf8
|
||||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||||
|
timeout: 20s
|
||||||
|
retries: 20
|
||||||
volumes:
|
volumes:
|
||||||
#- ep-mysql-volume:/var/lib/mysql
|
#- ep-mysql-volume:/var/lib/mysql
|
||||||
- /srv/initdb/etherpad:/docker-entrypoint-initdb.d/
|
- /srv/initdb/etherpad:/docker-entrypoint-initdb.d/
|
||||||
@@ -47,7 +51,7 @@ services:
|
|||||||
REQUIRE_SESSION: "true"
|
REQUIRE_SESSION: "true"
|
||||||
depends_on:
|
depends_on:
|
||||||
etherpadsql:
|
etherpadsql:
|
||||||
condition: "service_started"
|
condition: "service_healthy"
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
- /srv/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
||||||
# - ./deployment/mysql.cnf:/etc/mysql/conf.d
|
# - ./deployment/mysql.cnf:/etc/mysql/conf.d
|
||||||
|
|||||||
Reference in New Issue
Block a user