root 2 months ago
parent
commit
0e978c20b0
3 changed files with 31 additions and 0 deletions
  1. 3 0
      .env.template
  2. 2 0
      .gitignore
  3. 26 0
      docker-compose.yml

+ 3 - 0
.env.template

@@ -0,0 +1,3 @@
+HOSTNAME=cloud.s-up.net
+ADMIN_USER=admin
+ADMIN_PASS=MakeSureToSetYourOwnPasswordOverHere!!!

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+data/
+.env

+ 26 - 0
docker-compose.yml

@@ -0,0 +1,26 @@
+version: '3.4'
+
+services:
+  nextcloud:
+    image: nextcloud 
+    container_name: nextcloud
+    hostname: ${HOSTNAME} 
+    restart: on-failure:3 
+    volumes:
+      - ./data/webroot:/var/www/html
+    environment:
+      - VIRTUAL_HOST=${HOSTNAME}
+      - LETSENCRYPT_HOST=${HOSTNAME}
+      - LETSENCRYPT_EMAIL=webmaster@${HOSTNAME}
+      - SQLITE_DATABASE=@${HOSTNAME}
+      - NEXTCLOUD_ADMIN_USER=${ADMIN_USER}
+      - NEXTCLOUD_ADMIN_PASSWORD=${ADMIN_PASS}
+      - TRUSTED_PROXIES=reverse-proxy
+      - OVERWRITEPROTOCOL=https
+      - OVERWRITEHOST=${HOSTNAME}
+    networks:
+      - reverse-proxy_default
+
+networks:
+  reverse-proxy_default:
+    external: true