From cf54a360ee701b77aeafbbe37cb5cffbb497aabd Mon Sep 17 00:00:00 2001 From: Andreas Heinrich Date: Mon, 21 Oct 2024 10:53:41 +0200 Subject: [PATCH] Add docker-compose.yml file to allow convenient control of services without devcontainer Signed-off-by: Andreas Heinrich --- docker/docker-compose.yml | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 docker/docker-compose.yml diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..3c694ce --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,48 @@ +version: "3.6" + +volumes: + ocpp-db-data: + external: false + node-red-data: + external: false + +networks: + default: + external: true + name: infranet_network + +services: + mqtt-server: + build: images/mosquitto + ports: + - 1883:1883 + - 9001:9001 + + ocpp-db: + image: mariadb:10.4.30 # pinned to patch-version because https://github.com/steve-community/steve/pull/1213 + volumes: + - ocpp-db-data:/var/lib/mysql + ports: + - 13306:3306 + environment: + MYSQL_RANDOM_ROOT_PASSWORD: "yes" + MYSQL_DATABASE: ocpp-db + MYSQL_USER: ocpp + MYSQL_PASSWORD: ocpp + + steve: + build: images/steve + ports: + - 8180:8180 + - 8443:8443 + depends_on: + - ocpp-db + + nodered: + build: images/nodered + volumes: + - node-red-data:/data + depends_on: + - mqtt-server + ports: + - 1880:1880