update example compose file

pull/13/head
Up 8 months ago
parent 5d6bfe0c22
commit 4430a18dae
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

@ -1,10 +1,11 @@
services: services:
server: server:
image: ghcr.io/pagefaultgames/pokerogue:latest command: --debug --dbaddr db --dbuser pokerogue --dbpass pokerogue --dbname pokeroguedb
command: --debug --dbaddr db:3306 --dbuser pokerogue --dbpass pokerogue --dbname pokeroguedb image: ghcr.io/pagefaultgames/rogueserver:master
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db db:
condition: service_healthy
networks: networks:
- internal - internal
ports: ports:
@ -12,6 +13,13 @@ services:
db: db:
image: mariadb:11 image: mariadb:11
restart: unless-stopped 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: environment:
MYSQL_ROOT_PASSWORD: admin MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: pokeroguedb MYSQL_DATABASE: pokeroguedb
@ -19,6 +27,8 @@ services:
MYSQL_PASSWORD: pokerogue MYSQL_PASSWORD: pokerogue
volumes: volumes:
- database:/var/lib/mysql - database:/var/lib/mysql
networks:
- internal
volumes: volumes:
database: database:

Loading…
Cancel
Save