File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ services:
23
23
- ' 8080:8080'
24
24
depends_on :
25
25
- server
26
- working_dir : /gva- web # 如果docker 设置了workdir 则此处不需要设置
26
+ working_dir : /web # 如果docker 设置了workdir 则此处不需要设置
27
27
# 若网络不太好,请自行换源,如下
28
28
# command: bash -c "yarn config set registry https://registry.npm.taobao.org --global && yarn install && yarn serve"
29
29
command : bash -c "yarn install && yarn serve"
30
30
volumes :
31
- - ./web:/gva- web
31
+ - ./web:/web
32
32
networks :
33
33
network :
34
34
ipv4_address : 177.7.0.11
@@ -44,8 +44,8 @@ services:
44
44
- mysql
45
45
- redis
46
46
volumes :
47
- - ./server:/gva- server
48
- working_dir : /gva- server # 如果docker 设置了workdir 则此处不需要设置
47
+ - ./server:/server
48
+ working_dir : /server # 如果docker 设置了workdir 则此处不需要设置
49
49
command : bash -c "go env -w GOPROXY=https://goproxy.cn,direct && go mod tidy && go run main.go"
50
50
links :
51
51
- mysql
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ VITE_CLI_PORT = 8080
3
3
VITE_SERVER_PORT = 8888
4
4
VITE_BASE_API = /api
5
5
VITE_BASE_PATH = http://127.0.0.1
6
- // 如果使用docker-compose开发模式,设置为下面的地址
6
+ // 如果使用docker-compose开发模式,设置为下面的地址或本机主机IP
7
7
//VITE_BASE_PATH = http://177.7.0.12
You can’t perform that action at this time.
0 commit comments