From 4430a18daefb48452096fb4b15e236cbdc3ef8f1 Mon Sep 17 00:00:00 2001 From: Up Date: Sun, 12 May 2024 08:05:40 +0200 Subject: [PATCH] update example compose file --- docker-compose.Example.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docker-compose.Example.yml b/docker-compose.Example.yml index b377d71..0279c86 100644 --- a/docker-compose.Example.yml +++ b/docker-compose.Example.yml @@ -1,10 +1,11 @@ services: server: - image: ghcr.io/pagefaultgames/pokerogue:latest - command: --debug --dbaddr db:3306 --dbuser pokerogue --dbpass pokerogue --dbname pokeroguedb + command: --debug --dbaddr db --dbuser pokerogue --dbpass pokerogue --dbname pokeroguedb + image: ghcr.io/pagefaultgames/rogueserver:master restart: unless-stopped depends_on: - - db + db: + condition: service_healthy networks: - internal ports: @@ -12,6 +13,13 @@ services: db: image: mariadb:11 restart: unless-stopped + healthcheck: + test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ] + start_period: 10s + start_interval: 10s + interval: 1m + timeout: 5s + retries: 3 environment: MYSQL_ROOT_PASSWORD: admin MYSQL_DATABASE: pokeroguedb @@ -19,6 +27,8 @@ services: MYSQL_PASSWORD: pokerogue volumes: - database:/var/lib/mysql + networks: + - internal volumes: database: