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.
This commit is contained in:
parent
72e9de96e4
commit
cdd8ccb0e5
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user