nexcloud and docker cmds
This commit is contained in:
@ -9,3 +9,8 @@ ssh user@your-server-ip
|
|||||||
docker load < my-next-app.tar
|
docker load < my-next-app.tar
|
||||||
# Step 5: Run the Docker Container
|
# Step 5: Run the Docker Container
|
||||||
docker run -d -p 80:3000 my-next-app
|
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 &
|
||||||
|
@ -23,5 +23,10 @@ docker exec -u 0 nextcloud php occ upgrade
|
|||||||
To check the database version in Nextcloud:
|
To check the database version in Nextcloud:
|
||||||
docker exec -u www-data nextcloud php occ config:system:get version
|
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
|
27.0.2.1 ->> 28.0.14 -> 29.0.10 -> 30.0.4
|
42
portainer-compose-stacks/proxy/proxy.yml
Normal file
42
portainer-compose-stacks/proxy/proxy.yml
Normal file
@ -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 <host-port>:<container-port>
|
||||||
|
- '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
|
Reference in New Issue
Block a user