add Dockerfile and docker-compose for multi-stage build; update .gitignore and various HTML examples
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal 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: {}
|
||||
Reference in New Issue
Block a user