DONE: use ip for frontend but point to domain for api
Build Docker Image / build-backend (push) Successful in 6s
Build Docker Image / build-admin (push) Successful in 45s
Build Docker Image / build-teller (push) Successful in 20s
Build Docker Image / build-customer (push) Successful in 2m2s

This commit is contained in:
ISMAIL MASSERAN
2026-07-23 14:59:01 +08:00
parent 621cf212f5
commit 8fd3dbe393
12 changed files with 57 additions and 33 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
# Host ports (change these if they collide on your single server)
BACKEND_HOST_PORT=8080
# MySQL is internal-only (not published to the host)
# Published for DBeaver/tools (container still uses 3306 internally)
MYSQL_HOST_PORT=3307
# MySQL
# Quote if the password contains special chars like ; # $
+2 -1
View File
@@ -1,6 +1,7 @@
# Host ports (change these if they collide on your single server)
BACKEND_HOST_PORT=8080
# MySQL is internal-only (not published to the host)
# Published for DBeaver/tools (container still uses 3306 internally)
MYSQL_HOST_PORT=3307
# MySQL
MYSQL_ROOT_PASSWORD="R8qjjBJDg9NtL2IwcnoFMkn8pktwAZ;wsl"
+11 -3
View File
@@ -3,15 +3,23 @@ services:
image: mysql:8
container_name: qms-mysql
restart: unless-stopped
# Do not publish 3306 to the host — avoids clashes with host MySQL.
# Backend reaches it as hostname "mysql" on the internal Docker network.
ports:
- "${MYSQL_HOST_PORT:-3307}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-password}
MYSQL_DATABASE: ${MYSQL_DATABASE:-qms}
volumes:
- qms-mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-p${MYSQL_ROOT_PASSWORD:-password}"]
test:
[
"CMD",
"mysqladmin",
"ping",
"-h",
"localhost",
"-p${MYSQL_ROOT_PASSWORD:-password}",
]
interval: 5s
timeout: 5s
retries: 20