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

docker编排还原

parent 74404e9d
...@@ -8,7 +8,7 @@ services: ...@@ -8,7 +8,7 @@ services:
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-yaoai123} MYSQL_PASSWORD: ${MYSQL_PASSWORD:-yaoai123}
TZ: ${TZ:-Asia/Shanghai} TZ: ${TZ:-Asia/Shanghai}
ports: ports:
- "${MYSQL_PORT:-23306}:3306" - "${MYSQL_PORT:-13306}:3306"
command: command:
- --character-set-server=utf8mb4 - --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci - --collation-server=utf8mb4_unicode_ci
...@@ -26,7 +26,7 @@ services: ...@@ -26,7 +26,7 @@ services:
redis: redis:
image: docker.m.daocloud.io/library/redis:7.2-alpine image: docker.m.daocloud.io/library/redis:7.2-alpine
ports: ports:
- "${REDIS_PORT:-26379}:6379" - "${REDIS_PORT:-16379}:6379"
volumes: volumes:
- redis-data:/data - redis-data:/data
healthcheck: healthcheck:
...@@ -43,8 +43,7 @@ services: ...@@ -43,8 +43,7 @@ services:
environment: environment:
TZ: ${TZ:-Asia/Shanghai} TZ: ${TZ:-Asia/Shanghai}
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-prod} SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-prod}
SERVER_PORT: 8081 SERVER_PORT: 8080
BILLING_MODE: ${BILLING_MODE:-STRICT}
DB_URL: jdbc:mysql://mysql:3306/${MYSQL_DATABASE:-yaoai_comic}?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&characterEncoding=UTF-8 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_USERNAME: ${MYSQL_USER:-yaoai}
DB_PASSWORD: ${MYSQL_PASSWORD:-yaoai123} DB_PASSWORD: ${MYSQL_PASSWORD:-yaoai123}
...@@ -66,7 +65,7 @@ services: ...@@ -66,7 +65,7 @@ services:
redis: redis:
condition: service_healthy condition: service_healthy
ports: ports:
- "${BACKEND_PORT:-28081}:8081" - "${BACKEND_PORT:-8080}:8080"
restart: unless-stopped restart: unless-stopped
frontend: frontend:
...@@ -78,19 +77,7 @@ services: ...@@ -78,19 +77,7 @@ services:
depends_on: depends_on:
- backend - backend
ports: ports:
- "${FRONTEND_PORT:-3000}:3000" - "${FRONTEND_PORT:-3000}:80"
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"
restart: unless-stopped restart: unless-stopped
volumes: 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