This commit is contained in:
ls
2024-08-10 14:03:55 +08:00
parent 73d8fca33b
commit 2cea470b9c
8 changed files with 83 additions and 87 deletions

View File

@@ -1,15 +1,13 @@
version: '2'
services:
jeecg-boot-mysql:
build:
context: ./db
physical-mysql:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_PASSWORD: 123456
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
MYSQL_DATABASE: physical-boot
restart: always
container_name: jeecg-boot-mysql
image: jeecg-boot-mysql
container_name: physical-mysql
image: mysql:8.0
command:
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
@@ -18,28 +16,30 @@ services:
--max_allowed_packet=128M
--default-authentication-plugin=caching_sha2_password
ports:
- 3306:3306
- 23306:3306
volumes:
- mysql_data:/var/lib/mysql
- ./db/:/docker-entrypoint-initdb.d/
networks:
- jeecg-boot
- physical-boot
jeecg-boot-redis:
image: redis:5.0
physical-redis:
image: redis:latest
ports:
- 6379:6379
- 26379:6379
restart: always
hostname: jeecg-boot-redis
container_name: jeecg-boot-redis
hostname: physical-redis
container_name: physical-redis
networks:
- jeecg-boot
-
jeecg-boot-minio:
- physical-boot
physical-minio:
image: quay.io/minio/minio
ports:
- 9000:9000
- 9001:9001
- 29000:9000
- 29001:9001
restart: always
hostname: jeecg-boot-minio
container_name: jeecg-boot-minio
hostname: physical-minio
container_name: physical-minio
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: 12345678
@@ -47,27 +47,40 @@ services:
- minio_data:/data
command: server /data --console-address ":9001"
networks:
- jeecg-boot
- physical-boot
jeecg-boot-system:
build:
context: ./jeecg-module-system/jeecg-system-start
physical-launcher:
# build:
# context: ./physical-launcher
restart: on-failure
depends_on:
- jeecg-boot-mysql
- jeecg-boot-redis
- jeecg-boot-minio
container_name: jeecg-boot-system
image: jeecg-boot-system
hostname: jeecg-boot-system
- physical-mysql
- physical-redis
- physical-minio
container_name: physical-launcher
image: reg.laysan.biz/physical/physical-launcher
hostname: physical-launcher
ports:
- 8080:8080
- 28080:8080
networks:
- jeecg-boot
- physical-boot
physical-web:
# build:
# context: ../physical-web
container_name: physical-web
image: reg.laysan.biz/physical/physical-web
depends_on:
- physical-launcher
networks:
- physical-boot
ports:
- 8005:80
networks:
jeecg-boot:
name: jeecg_boot
physical-boot:
name: physical_boot
volumes:
minio_data:
mysql_data: