Public Access
1
0

feat: add proxy middleware for API requests and create production Docker Compose setup

This commit is contained in:
2025-08-23 11:27:40 -04:00
parent abfac06908
commit 0327ef81a6
5 changed files with 142 additions and 5 deletions

20
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,20 @@
# docker-compose.prod.yml for production
# This setup builds and runs the optimized production image.
#
# To start, run: docker-compose -f docker-compose.prod.yml up --build
#
services:
app:
build:
context: .
target: production # Use the 'production' stage from the Dockerfile
container_name: eleventy_prod
ports:
- "3000:3000"
volumes:
# Persist the view count data in a named volume.
- views_data:/app/_data
restart: unless-stopped
volumes:
views_data: