Files
iot-dc3/dc3/docker-compose-dev.yml
T
2024-12-09 12:23:24 +08:00

131 lines
2.8 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:
postgres:
image: pnoker/dc3-postgres:2024.3.dev
restart: always
ports:
- '35432:5432'
container_name: dc3-postgres
hostname: dc3-postgres
volumes:
- postgres:/var/lib/postgresql/data
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-postgres
mongo:
image: pnoker/dc3-mongo:2024.3.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: pnoker/dc3-redis:2024.3.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: pnoker/dc3-rabbitmq:2024.3.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
portainer:
image: portainer/portainer-ce:2.24.1-alpine
command: -H unix:///var/run/docker.sock
restart: always
ports:
- '9000:9000'
container_name: portainer
hostname: dc3-portainer
volumes:
- portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
logging:
driver: json-file
options:
max-size: '20m'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-portainer
volumes:
mongo_data:
mongo_config:
postgres:
redis:
rabbitmq:
portainer:
networks:
dc3net:
driver: bridge
...