❓ Chore: [docker]:修改docker部署逻辑
This commit is contained in:
parent
a7f373101f
commit
73ada50e23
@ -56,6 +56,7 @@ services:
|
|||||||
- ../front/build:/opt/dist
|
- ../front/build:/opt/dist
|
||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ./nginx/log:/var/log/nginx
|
- ./nginx/log:/var/log/nginx
|
||||||
|
- ${BOOKMARK_FILE_SAVE_PATH}/public:/opt/files/public
|
||||||
ports:
|
ports:
|
||||||
- 8083:8080
|
- 8083:8080
|
||||||
bookmark-service:
|
bookmark-service:
|
||||||
@ -88,6 +89,8 @@ services:
|
|||||||
-Dspring.datasource.druid.url=jdbc:mysql://bookmark-mysql:3306/bookmark?useUnicode=true\&characterEncoding=utf-8\&useSSL=false\&useJDBCCompliantTimezoneShift=true\&useLegacyDatetimeCode=false\&serverTimezone=UTC \
|
-Dspring.datasource.druid.url=jdbc:mysql://bookmark-mysql:3306/bookmark?useUnicode=true\&characterEncoding=utf-8\&useSSL=false\&useJDBCCompliantTimezoneShift=true\&useLegacyDatetimeCode=false\&serverTimezone=UTC \
|
||||||
-Dspring.redis.host=bookmark-redis \
|
-Dspring.redis.host=bookmark-redis \
|
||||||
-Des.host=bookmark-es \
|
-Des.host=bookmark-es \
|
||||||
|
-DserviceAddress=${BOOKMARK_HOST} \
|
||||||
|
-DfileSavePath=${BOOKMARK_FILE_SAVE_PATH} \
|
||||||
service.jar
|
service.jar
|
||||||
networks:
|
networks:
|
||||||
bookmark:
|
bookmark:
|
||||||
|
@ -41,5 +41,9 @@ http {
|
|||||||
index index.html;
|
index index.html;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /files/public{
|
||||||
|
root /opt/files/public;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user