26 lines
546 B
YAML
26 lines
546 B
YAML
services:
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx
|
|
restart: unless-stopped
|
|
ports:
|
|
- 80:80
|
|
volumes:
|
|
- ./html:/usr/share/nginx/html:ro
|
|
- /mnt/ssd:/downloads:ro
|
|
environment:
|
|
- NGINX_HOST=example.com
|
|
- NGINX_PORT=80
|
|
|
|
diskinfo:
|
|
image: alpine:latest
|
|
container_name: diskinfo
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/ssd:/downloads:ro
|
|
- ./html:/html
|
|
- ./scripts/update-disk.sh:/update-disk.sh:ro
|
|
command: ["/bin/sh", "/update-disk.sh"]
|
|
|
|
networks: {}
|