add Dockerfile and docker-compose for multi-stage build; update .gitignore and various HTML examples

This commit is contained in:
Elmar Kresse
2025-12-28 15:50:59 +01:00
parent 49a1ef45da
commit 0d376597d6
10 changed files with 189 additions and 23 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
services:
app-prod:
build:
context: .
dockerfile: Dockerfile
target: prod
image: dbr-app:latest
ports:
- "8080:8080"
restart: unless-stopped
environment:
- POCKETBASE_HTTP_ADDR=0.0.0.0:8080
volumes:
- ./pb_public:/app/pb_public:ro
- ./pb_data:/app/pb_data
command: ["/app/server", "serve", "--http=0.0.0.0:8080"]
volumes:
pb_public: {}
pb_data: {}