fix: prod docker-compose.yml
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# docker-compose.prod.yml for production
|
# docker-compose.yml for production
|
||||||
# This setup builds and runs the optimized production image.
|
# This setup builds and runs the optimized production image.
|
||||||
#
|
#
|
||||||
# To start, run: docker-compose -f docker-compose.prod.yml up --build
|
# To update, run: docker compose build
|
||||||
#
|
#
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
@@ -10,11 +10,11 @@ services:
|
|||||||
target: production # Use the 'production' stage from the Dockerfile
|
target: production # Use the 'production' stage from the Dockerfile
|
||||||
container_name: eleventy_prod
|
container_name: eleventy_prod
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- 3000:3000
|
||||||
volumes:
|
volumes:
|
||||||
# Persist the view count data in a named volume.
|
# Persist the view count data in a named volume.
|
||||||
- views_data:/app/_data
|
- views_data:/app/_data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
views_data:
|
views_data: null
|
||||||
|
networks: {}
|
||||||
|
Reference in New Issue
Block a user