diff --git a/apps/server/src/config/config.prod.ts b/apps/server/src/config/config.prod.ts index 742171f..c625470 100644 --- a/apps/server/src/config/config.prod.ts +++ b/apps/server/src/config/config.prod.ts @@ -9,7 +9,7 @@ export default (appInfo: MidwayAppInfo): MidwayConfig => { * 单数据库实例 */ type: 'mysql', - host: 'mysql', + host: 'backset-mysql', port: 3307, username: 'root', password: 'root', diff --git a/docker-compose.yml b/docker-compose.yml index 082a91f..001b596 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,9 @@ services: image: nginx:1.22 restart: always container_name: backset-nginx + ports: + - "80:80" + - "443:443" volumes: - /www/wwwroot/backset/nginx/conf.d/:/etc/nginx/conf.d/ - /www/wwwroot/backset/nginx/ssl:/etc/nginx/ssl/ @@ -69,10 +72,10 @@ services: # links: # - mysql:mysql # - redis:redis - # depends_on: - # - mysql - # - redis - # - nginx + depends_on: + - mysql + - redis + - nginx networks: backset-net: \ No newline at end of file