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.
14 lines
326 B
YAML
14 lines
326 B
YAML
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
|