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

66 lines
1.4 KiB

3 years ago
version: '2'
services:
kykms-mysql:
3 years ago
build:
context: ./db
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
restart: always
container_name: kykms-mysql
hostname: kykms-mysql
image: mysql:5.7
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
# --default-authentication-plugin=caching_sha2_password
3 years ago
ports:
- 3306:3306
kykms-redis:
3 years ago
image: redis:5.0
ports:
- 6379:6379
restart: always
hostname: kykms-redis
container_name: kykms-redis
3 years ago
kykms-ES:
build:
context: ./ES
image: elasticsearch:7.6.1
volumes:
- /home/docker/data/elasticsearch:/usr/share/elasticsearch/data
restart: always
hostname: kykms-ES
container_name: kykms-ES
ports:
- 9200:9200
- 9300:9300
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
cpuset-cpus: 1
m: 2G
kykms:
3 years ago
build:
context: ./jeecg-boot-module-system
restart: on-failure
privileged: true
3 years ago
depends_on:
- kykms-mysql
- kykms-redis
- kykms-ES
container_name: kykms
image: kykms
volumes:
- /home/docker/data/kykms:/kykms
hostname: kykms
3 years ago
ports:
- 8080:8080