Pocketbase Admin UI enable or disable via environment variable
2.9K
This is an extended version of the Pocketbase project. The original project can be found here.
In this version, I have added the following features:
ADMIN_ENABLED environment variable.ADMIN_ENABLED=true go run . serve in the root directory of the projectdocker build -t pbe:latest . in the root directory of the projectdocker run -p 8080:8080 -e ADMIN_ENABLED=true pbe:latest to start the serverdocker-compose.yml file with the following content:services:
pb:
build: . # use the pushed image by replacing this line with: image: pasinduakalpa/pbe:latest
container_name: pocketbase
ports:
- "8080:8080"
environment:
- ADMIN_ENABLED=true
volumes:
- ./data:/pb/pb_data
docker-compose up -d to start the serverThe admin UI can be accessed at http://localhost:8080/_ if the ADMIN_ENABLED environment variable is set to true.
Content type
Image
Digest
sha256:5520e2ced…
Size
12.4 MB
Last updated
5 months ago
docker pull pasinduakalpa/pbe