2024-05-10 12:47:22 -07:00
|
|
|
services:
|
|
|
|
server:
|
2024-05-11 23:05:40 -07:00
|
|
|
command: --debug --dbaddr db --dbuser pokerogue --dbpass pokerogue --dbname pokeroguedb
|
|
|
|
image: ghcr.io/pagefaultgames/rogueserver:master
|
2024-05-10 12:47:22 -07:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
2024-05-11 23:05:40 -07:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2024-05-10 12:47:22 -07:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
ports:
|
|
|
|
- "8001:8001"
|
2024-05-11 23:11:36 -07:00
|
|
|
|
2024-05-10 12:47:22 -07:00
|
|
|
db:
|
|
|
|
image: mariadb:11
|
|
|
|
restart: unless-stopped
|
2024-05-11 23:05:40 -07:00
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
|
|
|
|
start_period: 10s
|
|
|
|
start_interval: 10s
|
|
|
|
interval: 1m
|
|
|
|
timeout: 5s
|
|
|
|
retries: 3
|
2024-05-10 12:47:22 -07:00
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: admin
|
|
|
|
MYSQL_DATABASE: pokeroguedb
|
|
|
|
MYSQL_USER: pokerogue
|
|
|
|
MYSQL_PASSWORD: pokerogue
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/mysql
|
2024-05-11 23:05:40 -07:00
|
|
|
networks:
|
|
|
|
- internal
|
2024-05-10 12:47:22 -07:00
|
|
|
|
2024-05-11 23:11:36 -07:00
|
|
|
# Watchtower is a service that will automatically update your running containers
|
|
|
|
# when a new image is available. This is useful for keeping your server up-to-date.
|
|
|
|
# see https://containrrr.dev/watchtower/ for more information.
|
|
|
|
watchtower:
|
|
|
|
image: containrrr/watchtower
|
|
|
|
container_name: watchtower
|
|
|
|
restart: always
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
environment:
|
|
|
|
WATCHTOWER_CLEANUP: true
|
|
|
|
WATCHTOWER_SCHEDULE: "@midnight"
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
2024-05-10 12:47:22 -07:00
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
internal:
|