64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
|
version: '2'
|
||
|
services:
|
||
|
samba:
|
||
|
container_name: samba
|
||
|
image: dperson/samba
|
||
|
volumes:
|
||
|
- /mnt/hdd/nas:/mount
|
||
|
environment:
|
||
|
- USERID=1000
|
||
|
- GROUPID=1000
|
||
|
ports:
|
||
|
- "139:139"
|
||
|
- "445:445"
|
||
|
restart: always
|
||
|
command: >
|
||
|
-s "public;/mount;yes;no;yes" -p
|
||
|
|
||
|
networks:
|
||
|
net:
|
||
|
nextcloud-db:
|
||
|
image: mariadb:10.5
|
||
|
container_name: nextcloud-db
|
||
|
restart: always
|
||
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||
|
volumes:
|
||
|
- /mnt/hdd/docker/nextcloud_db:/var/lib/mysql
|
||
|
networks:
|
||
|
nas_net:
|
||
|
env_file:
|
||
|
- nextcloud.env
|
||
|
nextcloud:
|
||
|
image: nextcloud:latest
|
||
|
container_name: nextcloud
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- /mnt/hdd/docker/nextcloud_data:/var/www/html
|
||
|
env_file:
|
||
|
- nextcloud.env
|
||
|
environment:
|
||
|
- MYSQL_HOST=nextcloud-db
|
||
|
labels:
|
||
|
- traefik.enable=true
|
||
|
- traefik.http.routers.nextcloud.entrypoints=websecure
|
||
|
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.ghoscht.com`)
|
||
|
- traefik.docker.network=traefik-net
|
||
|
- traefik.http.routers.nextcloud.tls=true
|
||
|
- traefik.http.routers.nextcloud.tls.certresolver=lencrypt
|
||
|
networks:
|
||
|
nas_net:
|
||
|
net:
|
||
|
dns:
|
||
|
- 1.1.1.1
|
||
|
networks:
|
||
|
net:
|
||
|
name: traefik-net
|
||
|
external: true
|
||
|
nas_net:
|
||
|
name: nas-net
|
||
|
volumes:
|
||
|
nextcloud_data:
|
||
|
name: nextcloud_data
|
||
|
nextcloud_db:
|
||
|
name: nextcloud_db
|