Made external MySQL port configurable

This commit is contained in:
Exynox 2024-06-02 22:23:41 +03:00
parent aa4795768f
commit 79a4c46145
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ MYSQL_HOST=mysql
MYSQL_USER=root
MYSQL_PASSWORD=metin2
MYSQL_PORT=3306
MYSQL_EXTERNAL_PORT=3306
MYSQL_DB_ACCOUNT=account
MYSQL_DB_PLAYER=player
MYSQL_DB_COMMON=common

View File

@ -27,7 +27,7 @@ services:
# Password for root access
MYSQL_ROOT_PASSWORD: 'metin2'
ports:
- '${MYSQL_PORT}:${MYSQL_PORT}'
- '${MYSQL_EXTERNAL_PORT}:${MYSQL_PORT}'
expose:
- ${MYSQL_PORT}
volumes: