Skip to content

Commit 4d1d3f8

Browse files
authored
Update docker-compose-mysql.yml
1 parent 19613ae commit 4d1d3f8

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

docker-compose-mysql.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,33 @@
5151
ports:
5252
- "8090:8080"
5353

54+
5455
koalawiki-web:
5556
image: crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/koala-wiki-web
5657
command: ["/app/start.sh"]
5758
environment:
5859
- NEXT_PUBLIC_API_URL=http://koalawiki:8080 # 用于提供给server的地址
5960
build:
60-
context: .
61-
dockerfile: web/Dockerfile
61+
context: ./web
62+
dockerfile: Dockerfile
63+
64+
nginx: # 需要nginx将前端和后端代理到一个端口
65+
image: crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/koala-ai/nginx:alpine
66+
ports:
67+
- 8090:80
68+
volumes:
69+
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
6270
depends_on:
6371
- koalawiki
64-
ports:
65-
- "3000:3000"
72+
- koalawiki-web
73+
74+
aspire-dashboard:
75+
image: mcr.microsoft.com/dotnet/aspire-dashboard
76+
container_name: aspire-dashboard
77+
restart: always
78+
environment:
79+
- TZ=Asia/Shanghai
80+
- Dashboard:ApplicationName=Aspire
6681

6782
volumes:
6883
mysql_data:

0 commit comments

Comments
 (0)