Explorar o código

add in inital config for nextcloud

Jason Playne %!s(int64=3) %!d(string=hai) anos
pai
achega
5c3338ff13
Modificáronse 1 ficheiros con 35 adicións e 7 borrados
  1. 35 7
      network/docker-compose.yml

+ 35 - 7
network/docker-compose.yml

@@ -4,8 +4,13 @@ volumes:
   pihole_config_etc:
   pihole_config_dnsmasq:
   heimdall_config:
-  
   git_data:
+  nextcloud_data:
+    driver_opts:
+      type: nfs
+      o: addr=10.10.20.254,rw,hard,user=nobody
+      device: :/mnt/documents/files/cloud/
+  postgres_data:
 
 services:
   heimdall:
@@ -14,13 +19,12 @@ services:
       - PUID=1000
     image: ghcr.io/linuxserver/heimdall
     ports:
-      - 10.10.20.254:80:80/tcp
+      - "10.10.20.254:80:80/tcp"
     restart: unless-stopped
     volumes:
       - heimdall_config:/config:rw
       - /etc/timezone:/etc/timezone:ro
       - /etc/localtime:/etc/localtime:ro
-      
 
   pihole:
     dns:
@@ -40,10 +44,10 @@ services:
       - IPv6=True
     image: pihole/pihole:latest
     ports:
-      - 10.10.20.253:443:443/tcp
-      - 10.10.20.253:53:53/tcp
-      - 10.10.20.253:53:53/udp
-      - 10.10.20.253:80:80/tcp
+      - "10.10.20.253:443:443/tcp"
+      - "10.10.20.253:53:53/tcp"
+      - "10.10.20.253:53:53/udp"
+      - "10.10.20.253:80:80/tcp"
     restart: unless-stopped
     volumes:
       - /etc/timezone:/etc/timezone:ro
@@ -58,3 +62,27 @@ services:
       - "3000:3000"
     volumes:
       - git_data:/data
+
+  nextcloud:
+    image: nextcloud
+    restart: unless-stopped
+    ports:
+      - "10.10.20.252:80:80/tcp"
+    volumes:
+      - nextcloud_data:/var/www/html
+    environment:
+      - POSTGRES_DB=nextcloud
+      - POSTGRES_USER=nextcloud
+      - POSTGRES_PASSWORD=nextcloud
+      - POSTGRES_HOST=postgres
+
+  postgres:
+    image: postgres:14
+    ports:
+      - "5432"
+    volumes:
+      - postgres_data:/var/lib/postgresql/data
+    environment:
+      - POSTGRES_PASSWORD=nextcloud
+      - POSTGRES_USER=nextcloud
+      - POSTGRES_DB=nextcloud