Files
iot-dc3/dc3/docker-compose-dev.yml
T
2025-08-26 22:38:53 +08:00

292 lines
6.9 KiB
YAML

#
# Copyright 2016-present the IoT DC3 original author or authors.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
services:
gateway:
build:
context: ../dc3-gateway/
dockerfile: ./Dockerfile
image: pnoker/dc3-gateway:2025.6.6
restart: always
ports:
- "8000:8000"
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
ports:
- "8300:8300"
- "9300:9300"
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
ports:
- "8400:8400"
- "9400:9400"
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
ports:
- "8500:8500"
- "9500:9500"
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
ports:
- "6270:6270"
- "6271:6271"
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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.6.6
restart: always
environment:
- NODE_ENV=test
- APM_AGENT_ENABLE=false
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