Deploy:增加服务器地址配置
This commit is contained in:
parent
360bad76d7
commit
af3541b12c
@ -1,36 +1,36 @@
|
|||||||
version: "2"
|
version: "2"
|
||||||
services:
|
services:
|
||||||
bookmark-mysql:
|
bookmark-mysql:
|
||||||
image: mysql:8.0.16
|
image: mysql:8.0.16
|
||||||
container_name: bookmark-mysql
|
container_name: bookmark-mysql
|
||||||
ports:
|
ports:
|
||||||
- 3307:3306
|
- 3307:3306
|
||||||
networks:
|
networks:
|
||||||
- bookmark
|
- bookmark
|
||||||
volumes:
|
volumes:
|
||||||
- ./mysql/data:/var/lib/mysql
|
- ./mysql/data:/var/lib/mysql
|
||||||
- ./mysql/temp:/var/lib/mysql-files
|
- ./mysql/temp:/var/lib/mysql-files
|
||||||
- ./mysql/my.cnf:/etc/mysql/my.cnf
|
- ./mysql/my.cnf:/etc/mysql/my.cnf
|
||||||
- /etc/localtime:/etc/localtime
|
- /etc/localtime:/etc/localtime
|
||||||
- ./timezone:/etc/timezone
|
- ./timezone:/etc/timezone
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
|
||||||
- MYSQL_DATABASE=bookmark
|
- MYSQL_DATABASE=bookmark
|
||||||
bookmark-redis:
|
bookmark-redis:
|
||||||
image: redis:3.2.10
|
image: redis:3.2.10
|
||||||
container_name: bookmark-redis
|
container_name: bookmark-redis
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
- /etc/localtime:/etc/localtime
|
||||||
- ./timezone:/etc/timezone
|
- ./timezone:/etc/timezone
|
||||||
networks:
|
networks:
|
||||||
- bookmark
|
- bookmark
|
||||||
# redis未设置密码,如端口暴露可能会被攻击
|
# redis未设置密码,如端口暴露可能会被攻击
|
||||||
ports:
|
ports:
|
||||||
- 6380:6379
|
- 6380:6379
|
||||||
bookmark-es:
|
bookmark-es:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
|
||||||
container_name: bookmark-es
|
container_name: bookmark-es
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
- /etc/localtime:/etc/localtime
|
||||||
- ./timezone:/etc/timezone
|
- ./timezone:/etc/timezone
|
||||||
- ./es/data:/usr/share/elasticsearch/data
|
- ./es/data:/usr/share/elasticsearch/data
|
||||||
@ -41,40 +41,40 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 9200:9200
|
- 9200:9200
|
||||||
- 9300:9300
|
- 9300:9300
|
||||||
networks:
|
networks:
|
||||||
- bookmark
|
- bookmark
|
||||||
bookmark-front:
|
bookmark-front:
|
||||||
image: nginx
|
image: nginx
|
||||||
container_name: bookmark-front
|
container_name: bookmark-front
|
||||||
depends_on:
|
depends_on:
|
||||||
- bookmark-service
|
- bookmark-service
|
||||||
networks:
|
networks:
|
||||||
- bookmark
|
- bookmark
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
- /etc/localtime:/etc/localtime
|
||||||
- ./timezone:/etc/timezone
|
- ./timezone:/etc/timezone
|
||||||
- ../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}/files/public:/opt/files/public
|
- ${BOOKMARK_FILE_SAVE_PATH}/files/public:/opt/files/public
|
||||||
ports:
|
ports:
|
||||||
- 8083:8080
|
- 8083:8080
|
||||||
bookmark-service:
|
bookmark-service:
|
||||||
image: registry.cn-hangzhou.aliyuncs.com/fleyx/node-java-env:v2
|
image: registry.cn-hangzhou.aliyuncs.com/fleyx/node-java-env:v2
|
||||||
container_name: bookmark-service
|
container_name: bookmark-service
|
||||||
depends_on:
|
depends_on:
|
||||||
- bookmark-mysql
|
- bookmark-mysql
|
||||||
- bookmark-redis
|
- bookmark-redis
|
||||||
- bookmark-es
|
- bookmark-es
|
||||||
networks:
|
networks:
|
||||||
- bookmark
|
- bookmark
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime
|
- /etc/localtime:/etc/localtime
|
||||||
- ./timezone:/etc/timezone
|
- ./timezone:/etc/timezone
|
||||||
- ../bookMarkService/web/target/bookmark-web-1.0-SNAPSHOT.jar:/opt/app/service.jar
|
- ../bookMarkService/web/target/bookmark-web-1.0-SNAPSHOT.jar:/opt/app/service.jar
|
||||||
- ${BOOKMARK_FILE_SAVE_PATH}:/opt/files
|
- ${BOOKMARK_FILE_SAVE_PATH}:/opt/files
|
||||||
working_dir: /opt/app
|
working_dir: /opt/app
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
@ -92,6 +92,7 @@ services:
|
|||||||
-Des.host=bookmark-es \
|
-Des.host=bookmark-es \
|
||||||
-DserviceAddress=${BOOKMARK_HOST} \
|
-DserviceAddress=${BOOKMARK_HOST} \
|
||||||
-DfileSavePath=/opt/files \
|
-DfileSavePath=/opt/files \
|
||||||
|
-DserviceAddress=https://bm.tapme.top \
|
||||||
service.jar
|
service.jar
|
||||||
networks:
|
networks:
|
||||||
bookmark:
|
bookmark:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user