35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
|
|
version: '3.7'
|
|
|
|
networks:
|
|
infra:
|
|
external: true
|
|
|
|
services:
|
|
app:
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
- NET_ADMIN
|
|
image: 172.20.40.1:5000/samba:latest
|
|
hostname: dc${OVERNODE_ID:-1}.ad.k-space.ee
|
|
networks:
|
|
infra:
|
|
ipv4_address: 172.21.39.${OVERNODE_ID:-1}
|
|
ipv6_address: 2001:bb8:4008:21:172:21:39:${OVERNODE_ID:-1}
|
|
dns:
|
|
- 2001:bb8:4008:21:172:21:39:1
|
|
- 2001:bb8:4008:21:172:21:39:2
|
|
- 2001:bb8:4008:21:172:21:39:3
|
|
volumes:
|
|
- type: bind
|
|
source: /mnt/ssd/samba/etc/samba
|
|
target: /etc/samba
|
|
- type: bind
|
|
source: /mnt/ssd/samba/var/lib/samba
|
|
target: /var/lib/samba/
|
|
environment:
|
|
PROVISION_WORKGROUP: AD
|
|
PROVISION_REALM: AD.K-SPACE.EE
|
|
PROVISION_REVERSE_INET_ZONE: 39.21.172.in-addr.arpa
|
|
PROVISION_REVERSE_INET6_ZONE: .9.3.0.0.1.2.0.0.2.7.1.0.1.2.0.0.8.0.0.4.8.b.b.0.1.0.0.2.ip6.arpa
|