mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-02 19:21:51 +08:00
113 lines
2.5 KiB
YAML
113 lines
2.5 KiB
YAML
#
|
|
# Copyright 2016-present the IoT DC3 original author or authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
services:
|
|
mysql:
|
|
image: registry.cn-beijing.aliyuncs.com/dc3/dc3-mysql:2024.3.0.dev
|
|
restart: always
|
|
ports:
|
|
- '33306:3306'
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=dc3
|
|
container_name: dc3-mysql
|
|
hostname: dc3-mysql
|
|
volumes:
|
|
- mysql_data:/data
|
|
- mysql_lib:/var/lib/mysql
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: '10M'
|
|
max-file: '20'
|
|
networks:
|
|
dc3net:
|
|
aliases:
|
|
- dc3-mysql
|
|
|
|
mongo:
|
|
image: registry.cn-beijing.aliyuncs.com/dc3/dc3-mongo:2024.3.0.dev
|
|
restart: always
|
|
ports:
|
|
- '37017:27017'
|
|
container_name: dc3-mongo
|
|
hostname: dc3-mongo
|
|
volumes:
|
|
- mongo_data:/data/db
|
|
- mongo_config:/data/configdb
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: '10M'
|
|
max-file: '20'
|
|
networks:
|
|
dc3net:
|
|
aliases:
|
|
- dc3-mongo
|
|
|
|
redis:
|
|
image: registry.cn-beijing.aliyuncs.com/dc3/dc3-redis:2024.3.0.dev
|
|
restart: always
|
|
ports:
|
|
- '36379:6379'
|
|
container_name: dc3-redis
|
|
hostname: dc3-redis
|
|
volumes:
|
|
- redis:/data
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: '10M'
|
|
max-file: '20'
|
|
networks:
|
|
dc3net:
|
|
aliases:
|
|
- dc3-redis
|
|
|
|
rabbitmq:
|
|
image: registry.cn-beijing.aliyuncs.com/dc3/dc3-rabbitmq:2024.3.0.dev
|
|
restart: always
|
|
ports:
|
|
- '5672:5672'
|
|
- '2883:1883'
|
|
- '3883:8883'
|
|
- '15672:15672'
|
|
container_name: dc3-rabbitmq
|
|
hostname: dc3-rabbitmq
|
|
volumes:
|
|
- rabbitmq:/var/lib/rabbitmq
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: '10M'
|
|
max-file: '20'
|
|
networks:
|
|
dc3net:
|
|
aliases:
|
|
- dc3-rabbitmq
|
|
|
|
volumes:
|
|
mysql_data:
|
|
mysql_lib:
|
|
mongo_data:
|
|
mongo_config:
|
|
redis:
|
|
rabbitmq:
|
|
|
|
networks:
|
|
dc3net:
|
|
driver: bridge
|
|
...
|