christianlempa-boilerplates/docker-compose/nginx/compose.yaml

14 lines
346 B
YAML
Raw Normal View History

2024-04-24 17:06:49 +02:00
---
services:
nginx:
image: docker.io/library/nginx:1.26.2-alpine
2024-04-24 17:06:49 +02:00
container_name: nginx
ports:
- 80:80
2024-04-26 15:33:47 +02:00
# (optional) uncomment the line below to enable HTTPS
# - 443:443
2024-04-24 17:06:49 +02:00
volumes:
2024-04-24 17:46:23 +02:00
- ./config/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./data:/usr/share/nginx/html:ro
2024-04-24 17:06:49 +02:00
restart: unless-stopped