82 lines
1.9 KiB
YAML
82 lines
1.9 KiB
YAML
version: '2'
|
|
services:
|
|
cpte-boot-mysql:
|
|
build:
|
|
context: ./db
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root
|
|
MYSQL_ROOT_HOST: '%'
|
|
TZ: Asia/Shanghai
|
|
restart: always
|
|
container_name: cpte-boot-mysql
|
|
image: cpte-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:
|
|
- 13306:3306
|
|
networks:
|
|
- cpte-boot
|
|
|
|
cpte-boot-redis:
|
|
image: registry.cn-hangzhou.aliyuncs.com/cptedocker/redis:5.0
|
|
# ports:
|
|
# - 6379:6379
|
|
restart: always
|
|
hostname: cpte-boot-redis
|
|
container_name: cpte-boot-redis
|
|
networks:
|
|
- cpte-boot
|
|
|
|
cpte-boot-pgvector:
|
|
image: registry.cn-hangzhou.aliyuncs.com/cptedocker/pgvector
|
|
container_name: cpte-boot-pgvector
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: vector_db
|
|
# ports:
|
|
# - 5432:5432
|
|
restart: always
|
|
networks:
|
|
- cpte-boot
|
|
|
|
# cpte-boot-rabbitmq:
|
|
# image: rabbitmq:3.7.7-management
|
|
## ports:
|
|
## - 5672:5672
|
|
## - 15672:15672
|
|
# restart: always
|
|
# container_name: cpte-boot-rabbitmq
|
|
# hostname: cpte-boot-rabbitmq
|
|
# environment:
|
|
# RABBITMQ_DEFAULT_USER: guest
|
|
# RABBITMQ_DEFAULT_PASS: guest
|
|
# networks:
|
|
# - cpte-boot
|
|
|
|
cpte-boot-system:
|
|
build:
|
|
context: ./cpte-module-system/cpte-system-start
|
|
restart: on-failure
|
|
depends_on:
|
|
- cpte-boot-mysql
|
|
- cpte-boot-redis
|
|
container_name: cpte-boot-system
|
|
image: cpte-boot-system
|
|
hostname: cpte-boot-system
|
|
ports:
|
|
- 8000:8000
|
|
networks:
|
|
- cpte-boot
|
|
volumes:
|
|
- ./config:/cpte-boot/config
|
|
|
|
networks:
|
|
cpte-boot:
|
|
name: cpte_boot
|