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

141 lines
3.1 KiB
YAML

version : '3.8'
services:
hw-nacos:
container_name: hw-nacos
image: nacos/nacos-server
build:
context: ./nacos
environment:
- MODE=standalone
volumes:
- ./nacos/logs/:/home/nacos/logs
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
ports:
- "8848:8848"
- "9848:9848"
- "9849:9849"
depends_on:
- hw-mysql
hw-mysql:
container_name: hw-mysql
image: mysql:5.7
build:
context: ./mysql
ports:
- "3306:3306"
volumes:
- ./mysql/conf:/etc/mysql/conf.d
- ./mysql/logs:/logs
- ./mysql/data:/var/lib/mysql
command: [
'mysqld',
'--innodb-buffer-pool-size=80M',
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
'--default-time-zone=+8:00',
'--lower-case-table-names=1'
]
environment:
MYSQL_DATABASE: 'ry-cloud'
MYSQL_ROOT_PASSWORD: password
hw-redis:
container_name: hw-redis
image: redis
build:
context: ./redis
ports:
- "6379:6379"
volumes:
- ./redis/conf/redis.conf:/home/hw/redis/redis.conf
- ./redis/data:/data
command: redis-server /home/hw/redis/redis.conf
hw-nginx:
container_name: hw-nginx
image: nginx
build:
context: ./nginx
ports:
- "80:80"
volumes:
- ./nginx/html/dist:/home/hw/projects/hw-ui
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/logs:/var/log/nginx
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- hw-gateway
links:
- hw-gateway
hw-gateway:
container_name: hw-gateway
build:
context: ./hw/gateway
dockerfile: dockerfile
ports:
- "8080:8080"
depends_on:
- hw-redis
links:
- hw-redis
hw-auth:
container_name: hw-auth
build:
context: ./hw/auth
dockerfile: dockerfile
ports:
- "9200:9200"
depends_on:
- hw-redis
links:
- hw-redis
hw-modules-system:
container_name: hw-modules-system
build:
context: ./hw/modules/system
dockerfile: dockerfile
ports:
- "9201:9201"
depends_on:
- hw-redis
- hw-mysql
links:
- hw-redis
- hw-mysql
hw-modules-gen:
container_name: hw-modules-gen
build:
context: ./hw/modules/gen
dockerfile: dockerfile
ports:
- "9202:9202"
depends_on:
- hw-mysql
links:
- hw-mysql
hw-modules-job:
container_name: hw-modules-job
build:
context: ./hw/modules/job
dockerfile: dockerfile
ports:
- "9203:9203"
depends_on:
- hw-mysql
links:
- hw-mysql
hw-modules-file:
container_name: hw-modules-file
build:
context: ./hw/modules/file
dockerfile: dockerfile
ports:
- "9300:9300"
volumes:
- ./hw/uploadPath:/home/hw/uploadPath
hw-visual-monitor:
container_name: hw-visual-monitor
build:
context: ./hw/visual/monitor
dockerfile: dockerfile
ports:
- "9100:9100"