Commit c2bcc050 authored by yaoke.yk's avatar yaoke.yk

docker编排还原

parent 74404e9d
......@@ -8,7 +8,7 @@ services:
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-yaoai123}
TZ: ${TZ:-Asia/Shanghai}
ports:
- "${MYSQL_PORT:-23306}:3306"
- "${MYSQL_PORT:-13306}:3306"
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
......@@ -26,7 +26,7 @@ services:
redis:
image: docker.m.daocloud.io/library/redis:7.2-alpine
ports:
- "${REDIS_PORT:-26379}:6379"
- "${REDIS_PORT:-16379}:6379"
volumes:
- redis-data:/data
healthcheck:
......@@ -43,8 +43,7 @@ services:
environment:
TZ: ${TZ:-Asia/Shanghai}
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-prod}
SERVER_PORT: 8081
BILLING_MODE: ${BILLING_MODE:-STRICT}
SERVER_PORT: 8080
DB_URL: jdbc:mysql://mysql:3306/${MYSQL_DATABASE:-yaoai_comic}?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&characterEncoding=UTF-8
DB_USERNAME: ${MYSQL_USER:-yaoai}
DB_PASSWORD: ${MYSQL_PASSWORD:-yaoai123}
......@@ -66,7 +65,7 @@ services:
redis:
condition: service_healthy
ports:
- "${BACKEND_PORT:-28081}:8081"
- "${BACKEND_PORT:-8080}:8080"
restart: unless-stopped
frontend:
......@@ -78,19 +77,7 @@ services:
depends_on:
- backend
ports:
- "${FRONTEND_PORT:-3000}:3000"
restart: unless-stopped
admin-web:
build:
context: ./yaoai-admin-web
dockerfile: Dockerfile
environment:
ADMIN_API_UPSTREAM: http://backend:8081
depends_on:
- backend
ports:
- "${ADMIN_WEB_PORT:-3001}:3001"
- "${FRONTEND_PORT:-3000}:80"
restart: unless-stopped
volumes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment