Samba-ad-dc-with-docker/docker-compose.yml.secondary

42 lines
883 B
Plaintext
Raw Normal View History

2022-10-08 15:54:09 +09:00
version: "3.9"
services:
samba:
build: ./
image: custom/samba:1.0.0
container_name: samba
restart: unless-stopped
environment:
TZ: Asia/Tokyo
2022-10-16 21:23:14 +09:00
SMB_REALM: EXAMPLE.NET
2022-10-08 15:54:09 +09:00
SMB_DOMAIN: HOGEDOMAIN
SMB_ADMINPASS: p@ssword123
SMB_HOSTIP: ${SECONDARYIP}
2022-10-16 21:23:14 +09:00
SMB_FORWARD: ${FORWARDERIP}
2022-10-08 15:54:09 +09:00
SMB_RPC_PORTS: 49152-49200
2022-10-16 21:23:14 +09:00
SMB_WEB_PORTS: 8081
2022-10-08 15:54:09 +09:00
SMB_PURPOSE: "secondary"
SMB_USEBIND9: "false"
RSY_PRIMARY: ${PRIMARYIP}
RSY_PASS: p@ssword234
volumes:
- samba_etc:/etc/samba
- samba_lib:/var/lib/samba
- bind_etc:/etc/bind
- bind_lib:/var/lib/bind
- lam:/var/lib/ldap-account-manager
2022-10-16 21:23:14 +09:00
network_mode: "host"
2022-10-08 15:54:09 +09:00
hostname: addc2
dns:
2022-10-16 21:23:14 +09:00
- ${SECONDARYIP}
2022-10-08 15:54:09 +09:00
dns_search:
2022-10-16 21:23:14 +09:00
- example.net
2022-10-08 15:54:09 +09:00
privileged: true
volumes:
samba_etc:
samba_lib:
bind_etc:
bind_lib:
lam: