From dce99535f6a0d1508d09651925afd7d5ec19a290 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Tue, 22 Apr 2025 23:58:27 +0300 Subject: [PATCH] nexcloud and docker cmds --- dev/docker deploy.md | 7 +++- linux/nextcloud.md | 5 +++ portainer-compose-stacks/proxy/proxy.yml | 42 ++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 portainer-compose-stacks/proxy/proxy.yml diff --git a/dev/docker deploy.md b/dev/docker deploy.md index ed37045..464910d 100644 --- a/dev/docker deploy.md +++ b/dev/docker deploy.md @@ -8,4 +8,9 @@ scp my-next-app.tar user@your-server-ip:/path/to/directory ssh user@your-server-ip docker load < my-next-app.tar # Step 5: Run the Docker Container -docker run -d -p 80:3000 my-next-app \ No newline at end of file +docker run -d -p 80:3000 my-next-app + + + +Run the entrypoint script in detached mode (so it continues even if your console disconnects): + nohup /app/entrypoint.sh > /app/logs/manual-update.log 2>&1 & diff --git a/linux/nextcloud.md b/linux/nextcloud.md index aec1d20..6723fff 100644 --- a/linux/nextcloud.md +++ b/linux/nextcloud.md @@ -23,5 +23,10 @@ docker exec -u 0 nextcloud php occ upgrade To check the database version in Nextcloud: docker exec -u www-data nextcloud php occ config:system:get version +cleanup files: +docker exec -u 0 nextcloud php occ versions:cleanup +docker exec -u 0 nextcloud php occ trashbin:cleanup --all-users + + 27.0.2.1 ->> 28.0.14 -> 29.0.10 -> 30.0.4 \ No newline at end of file diff --git a/portainer-compose-stacks/proxy/proxy.yml b/portainer-compose-stacks/proxy/proxy.yml new file mode 100644 index 0000000..0323e5b --- /dev/null +++ b/portainer-compose-stacks/proxy/proxy.yml @@ -0,0 +1,42 @@ +version: "3" +services: + webproxy: + deploy: + replicas: 1 + # default login: admin@example.com/changeme + container_name: proxy + hostname: proxy + image: 'jc21/nginx-proxy-manager:2.12.2' + restart: always + ports: + # These ports are in format : + - '80:80' # Public HTTP Port + - '443:443' # Public HTTPS Port + - '81:81' # Admin Web Port. admin@example.com/changeme + # Add any other Stream port you want to expose + # - '21:21' # FTP + # - '19130:19130' # minecraft + + environment: + PUID: 1000 + PGID: 1000 + # Uncomment this if you want to change the location of + # the SQLite DB file within the container + # DB_SQLITE_FILE: "/data/database.sqlite" + + # Uncomment this if IPv6 is not enabled on your host + # DISABLE_IPV6: 'true' + + volumes: + - /mnt/appx/docker_vol/proxy/data:/data + - /mnt/appx/docker_vol/proxy/letsencrypt:/etc/letsencrypt + # - /mnt/apps/docker_volumes/proxy/data/_snippets/:/snippets + networks: + proxy_default: + ipv4_address: 172.22.0.2 # Fixed IP for your proxy +networks: + proxy_default: + driver: bridge + ipam: + config: + - subnet: 172.22.0.0/24 \ No newline at end of file