www-ai/docker-compose.yml

21 lines
425 B
YAML

services:
web:
image: nginx:alpine
container_name: www-ai
restart: always
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:80/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
- ./html:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- webnet
networks:
webnet:
external: true