smb_and_http_share/docker-compose.yaml

26 lines
652 B
YAML

version: "3"
services:
samba:
image: dockurr/samba
container_name: samba
environment:
USER: "user"
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
# Для генерации связки юзер:пароль использовать htpasswd -c /srv/.htpasswd user
restart: always