Files
iot-dc3/dc3/docker-compose.yml
T
2025-03-05 01:13:36 +08:00

281 lines
6.4 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:
gateway:
build:
context: ../dc3-gateway/
dockerfile: ./Dockerfile
image: pnoker/dc3-gateway:2025.2.1
restart: always
ports:
- '8000:8000'
environment:
- NODE_ENV=dev
container_name: dc3-gateway
hostname: dc3-gateway
volumes:
- logs:/dc3-gateway/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-gateway
auth:
build:
context: ../dc3-center/dc3-center-auth/
dockerfile: ./Dockerfile
image: pnoker/dc3-center-auth:2025.2.1
restart: always
ports:
- '8300:8300'
- '9300:9300'
environment:
- NODE_ENV=dev
container_name: dc3-center-auth
hostname: dc3-center-auth
volumes:
- logs:/dc3-center/dc3-center-auth/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-center-auth
manager:
build:
context: ../dc3-center/dc3-center-manager/
dockerfile: ./Dockerfile
image: pnoker/dc3-center-manager:2025.2.1
restart: always
ports:
- '8400:8400'
- '9400:9400'
environment:
- NODE_ENV=dev
container_name: dc3-center-manager
hostname: dc3-center-manager
volumes:
- logs:/dc3-center/dc3-center-manager/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-center-manager
data:
build:
context: ../dc3-center/dc3-center-data/
dockerfile: ./Dockerfile
image: pnoker/dc3-center-data:2025.2.1
restart: always
ports:
- '8500:8500'
- '9500:9500'
environment:
- NODE_ENV=dev
container_name: dc3-center-data
hostname: dc3-center-data
volumes:
- logs:/dc3-center/dc3-center-data/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-center-data
listening-virtual:
build:
context: ../dc3-driver/dc3-driver-listening-virtual/
dockerfile: ./Dockerfile
image: pnoker/dc3-driver-listening-virtual:2025.2.1
restart: always
ports:
- '6270:6270'
- '6271:6271'
environment:
- NODE_ENV=dev
container_name: dc3-driver-listening-virtual
hostname: dc3-driver-listening-virtual
volumes:
- logs:/dc3-driver/dc3-driver-listening-virtual/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-driver-listening-virtual
modbus-tcp:
build:
context: ../dc3-driver/dc3-driver-modbus-tcp/
dockerfile: ./Dockerfile
image: pnoker/dc3-driver-modbus-tcp:2025.2.1
restart: always
environment:
- NODE_ENV=dev
container_name: dc3-driver-modbus-tcp
hostname: dc3-driver-modbus-tcp
volumes:
- logs:/dc3-driver/dc3-driver-modbus-tcp/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-driver-modbus-tcp
mqtt:
build:
context: ../dc3-driver/dc3-driver-mqtt/
dockerfile: ./Dockerfile
image: pnoker/dc3-driver-mqtt:2025.2.1
restart: always
environment:
- NODE_ENV=dev
container_name: dc3-driver-mqtt
hostname: dc3-driver-mqtt
volumes:
- logs:/dc3-driver/dc3-driver-mqtt/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-driver-mqtt
opc-da:
build:
context: ../dc3-driver/dc3-driver-opc-da/
dockerfile: ./Dockerfile
image: pnoker/dc3-driver-opc-da:2025.2.1
restart: always
environment:
- NODE_ENV=dev
container_name: dc3-driver-opc-da
hostname: dc3-driver-opc-da
volumes:
- logs:/dc3-driver/dc3-driver-opc-da/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-driver-opc-da
opc-ua:
build:
context: ../dc3-driver/dc3-driver-opc-ua/
dockerfile: ./Dockerfile
image: pnoker/dc3-driver-opc-ua:2025.2.1
restart: always
environment:
- NODE_ENV=dev
container_name: dc3-driver-opc-ua
hostname: dc3-driver-opc-ua
volumes:
- logs:/dc3-driver/dc3-driver-opc-ua/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-driver-opc-ua
plcs7:
build:
context: ../dc3-driver/dc3-driver-plcs7/
dockerfile: ./Dockerfile
image: pnoker/dc3-driver-plcs7:2025.2.1
restart: always
environment:
- NODE_ENV=dev
container_name: dc3-driver-plcs7
hostname: dc3-driver-plcs7
volumes:
- logs:/dc3-driver/dc3-driver-plcs7/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-driver-plcs7
virtual:
build:
context: ../dc3-driver/dc3-driver-virtual/
dockerfile: ./Dockerfile
image: pnoker/dc3-driver-virtual:2025.2.1
restart: always
environment:
- NODE_ENV=dev
container_name: dc3-driver-virtual
hostname: dc3-driver-virtual
volumes:
- logs:/dc3-driver/dc3-driver-virtual/dc3/logs
logging:
driver: json-file
options:
max-size: '10M'
max-file: '20'
networks:
dc3net:
aliases:
- dc3-driver-virtual
volumes:
logs:
networks:
dc3net:
driver: bridge
...