From cdd8ccb0e52aebd3005bc78adc2dd14663607e1c Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 13 Nov 2025 12:14:34 -0500 Subject: [PATCH] feat: Add docker-compose for easier application management This commit introduces a `docker-compose.yml` file to simplify the process of building, running, and managing the application. - Defines the `bpb-website` service with build context, port mapping, and environment variables. - Mounts a volume for `update.json` to ensure data persistence across container restarts. - Sets `restart: always` to ensure the service is automatically restarted if it goes down. --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9b14673 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3.8' + +services: + bpb-website: + build: . + ports: + - "3050:3050" + environment: + ADMIN_PASSWORD: your_secure_password # IMPORTANT: Replace with a strong password + NODE_ENV: production + volumes: + - ./update.json:/usr/src/app/update.json # Persist update.json changes + restart: always