You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
km_community/jeecg-boot/docker-compose.yml

87 lines
2.0 KiB

# 先创建讯网络:
# docker network create --driver=bridge kykms_network
version: '3'
3 years ago
services:
kykms-mysql:
3 years ago
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
restart: always
container_name: kykms-mysql
image: registry.cn-guangzhou.aliyuncs.com/kyxxjs/kykms-mysql:comm
volumes:
- ./docker/mysql/data:/var/lib/mysql
- ./docker/mysql/log:/var/log/mysql
3 years ago
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
--max_allowed_packet=128M
ports:
- 3306:3306
networks:
kykms_network:
3 years ago
kykms-redis:
image: registry.cn-guangzhou.aliyuncs.com/kyxxjs/kykms-redis:6.0
3 years ago
ports:
- 6379:6379
restart: always
container_name: kykms-redis
networks:
kykms_network:
3 years ago
kykms-ES:
image: registry.cn-guangzhou.aliyuncs.com/kyxxjs/kykms-es:7.6.1
restart: always
container_name: kykms-ES
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
TZ: Asia/Shanghai
ports:
- 9200:9200
- 9300:9300
networks:
kykms_network:
kykms:
image: registry.cn-guangzhou.aliyuncs.com/kyxxjs/kykms:comm
container_name: kykms
environment:
- TZ=Asia/Shanghai
- LANG=en_US.UTF-8
3 years ago
depends_on:
- kykms-mysql
- kykms-redis
- kykms-ES
3 years ago
ports:
- "8080:8080"
networks:
kykms_network:
restart: always
command: java -jar ./jeecg-boot-module-system-2.4.5.jar 2>&1 &
kykms-nginx:
image: registry.cn-guangzhou.aliyuncs.com/kyxxjs/kykms-nginx:comm
depends_on:
- kykms
container_name: kykms-nginx
privileged: true
ports:
- "80:80"
volumes:
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./docker/nginx/log:/var/log/nginx
networks:
kykms_network:
restart: always
networks:
kykms_network:
external: true