first commit
This commit is contained in:
52
docker-compose.yml
Normal file
52
docker-compose.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
version: '2'
|
||||
services:
|
||||
ccag-boot-mysql:
|
||||
build:
|
||||
context: ./db
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_ROOT_HOST: '%'
|
||||
TZ: Asia/Shanghai
|
||||
restart: always
|
||||
container_name: ccag-boot-mysql
|
||||
image: ccag-boot-mysql
|
||||
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
|
||||
ports:
|
||||
- 3306:3306
|
||||
networks:
|
||||
- ccag-boot
|
||||
|
||||
ccag-boot-redis:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/jeecgdocker/redis:5.0
|
||||
ports:
|
||||
- 6379:6379
|
||||
restart: always
|
||||
hostname: ccag-boot-redis
|
||||
container_name: ccag-boot-redis
|
||||
networks:
|
||||
- ccag-boot
|
||||
|
||||
ccag-boot-system:
|
||||
build:
|
||||
context: ./ccag-module-system/ccag-system-start
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
- ccag-boot-mysql
|
||||
- ccag-boot-redis
|
||||
container_name: ccag-boot-system
|
||||
image: ccag-boot-system
|
||||
hostname: ccag-boot-system
|
||||
ports:
|
||||
- 8080:8080
|
||||
networks:
|
||||
- ccag-boot
|
||||
|
||||
networks:
|
||||
ccag-boot:
|
||||
name: ccag_boot
|
||||
Reference in New Issue
Block a user