smb_and_http_share/docker-compose.yaml

26 lines
652 B
YAML
Raw Normal View History

2025-03-21 12:35:13 +00:00
version: "3"
services:
samba:
image: dockurr/samba
container_name: samba
environment:
2025-03-23 18:36:37 +00:00
USER: "user"
2025-03-21 12:35:13 +00:00
PASS: "P@ssw0rd!"
ports:
- "445:445"
volumes:
- /srv/samba_share:/storage
restart: always
http_share:
image: nginx:latest
container_name: http_share
ports:
- "8080:80"
volumes:
- /srv/http_share:/usr/share/nginx/html:ro
- /srv/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- /srv/.htpasswd:/etc/nginx/.htpasswd:ro
2025-03-23 18:36:37 +00:00
# Для генерации связки юзер:пароль использовать htpasswd -c /srv/.htpasswd user
2025-03-21 12:35:13 +00:00
restart: always