21 lines
391 B
YAML
21 lines
391 B
YAML
services:
|
|
|
|
webserver-www:
|
|
image: nginx:stable
|
|
volumes:
|
|
- ${HTML}:/usr/share/nginx/html:ro
|
|
- $PWD/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
networks:
|
|
- web
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl" ,"--fail", "localhost"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
labels:
|
|
- "docker.group=www"
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
|