File tree 5 files changed +15
-10
lines changed
5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 1
1
server {
2
- listen 8000 ;
2
+ listen 8080 ;
3
3
server_name localhost;
4
4
5
5
#charset koi8-r;
Original file line number Diff line number Diff line change 26
26
# redis configuration
27
27
redis:
28
28
db: 0
29
- addr: 'redis :6379'
29
+ addr: '177.7.0.14 :6379'
30
30
password: ''
31
31
32
32
# email configuration
@@ -48,9 +48,9 @@ system:
48
48
env: 'public' # Change to "develop" to skip authentication for development mode
49
49
addr: 8888
50
50
db-type: 'mysql'
51
- oss-type: 'qiniu '
51
+ oss-type: 'local '
52
52
config-env: 'GVA_CONFIG'
53
- need-init-data: false
53
+ need-init-data: true
54
54
use-multipoint: false
55
55
56
56
# captcha configuration
@@ -61,11 +61,11 @@ captcha:
61
61
62
62
# mysql connect configuration
63
63
mysql:
64
- path: mysql
64
+ path: '177.7.0.13:3306'
65
65
config: 'charset=utf8mb4&parseTime=True&loc=Local'
66
66
db-name: 'qmPlus'
67
67
username: 'root'
68
- password: 'gdkid,,.. '
68
+ password: 'Aa@6447985 '
69
69
max-idle-conns: 10
70
70
max-open-conns: 10
71
71
log-mode: false
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ services:
15
15
container_name : gva-web
16
16
restart : always
17
17
ports :
18
- - ' 8000:8000 '
18
+ - ' 8080:8080 '
19
19
depends_on :
20
20
- server
21
21
command : [ 'nginx-debug', '-g', 'daemon off;' ]
@@ -34,6 +34,9 @@ services:
34
34
depends_on :
35
35
- mysql
36
36
- redis
37
+ links :
38
+ - mysql
39
+ - redis
37
40
networks :
38
41
network :
39
42
ipv4_address : 177.7.0.12
@@ -57,7 +60,7 @@ services:
57
60
container_name : gva-redis # 容器名
58
61
restart : always
59
62
ports :
60
- - ' 6379 :6379'
63
+ - ' 16379 :6379'
61
64
networks :
62
65
network :
63
66
ipv4_address : 177.7.0.14
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ COPY --from=0 /go/src/gin-vue-admin/server ./
24
24
COPY --from=0 /go/src/gin-vue-admin/config.yaml ./
25
25
COPY --from=0 /go/src/gin-vue-admin/resource ./resource
26
26
27
+ EXPOSE 8888
28
+
27
29
ENTRYPOINT ./server
28
30
29
31
# 根据Dockerfile生成Docker镜像
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ system:
41
41
env : ' public' # Change to "develop" to skip authentication for development mode
42
42
addr : 8888
43
43
db-type : ' mysql'
44
- oss-type : ' qiniu '
44
+ oss-type : ' local '
45
45
config-env : ' GVA_CONFIG'
46
46
need-init-data : false
47
47
use-multipoint : false
58
58
config : ' charset=utf8mb4&parseTime=True&loc=Local'
59
59
db-name : ' qmPlus'
60
60
username : ' root'
61
- password : ' gdkid,,.. '
61
+ password : ' Aa@6447985 '
62
62
max-idle-conns : 10
63
63
max-open-conns : 10
64
64
log-mode : false
You can’t perform that action at this time.
0 commit comments