docker config added
This commit is contained in:
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user