docker config added

This commit is contained in:
govardhan
2025-06-19 20:31:02 +05:30
parent d43218fe31
commit 8bbbaa1ea4
3 changed files with 57 additions and 0 deletions

21
docker-compose.yml Normal file
View File

@ -0,0 +1,21 @@
version: '3.9'
services:
mkdocs:
build:
context: .
dockerfile: Dockerfile
image: mkdocs-material-prod
ports:
- "8085:80"
environment:
- NGINX_WORKER_PROCESSES=1
- NGINX_WORKER_CONNECTIONS=1024
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
interval: 30s
timeout: 3s
retries: 3