mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-03-14 19:59:38 +01:00
Hotfix for docker-compose files
This commit is contained in:
parent
2bf1859901
commit
ad396912cd
@ -26,8 +26,8 @@ services:
|
||||
#- "0.0.0.0:443:443"
|
||||
volumes:
|
||||
- ./.env:/app/.env
|
||||
- linkace_logs:/app/storage/logs
|
||||
- ./backups:/app/storage/app/backups
|
||||
- linkace_logs:/app/storage/logs
|
||||
# Remove the hash of the following line if you want to use HTTPS for this container
|
||||
#- ./nginx-ssl.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
#- /path/to/your/ssl/certificates:/certs:ro
|
||||
@ -35,5 +35,4 @@ services:
|
||||
volumes:
|
||||
linkace_logs:
|
||||
db:
|
||||
external: true
|
||||
driver: local
|
||||
|
@ -23,9 +23,9 @@ services:
|
||||
- db
|
||||
volumes:
|
||||
- ./.env:/app/.env
|
||||
- ./backups:/app/storage/app/backups
|
||||
- linkace_app:/app
|
||||
- linkace_logs:/app/storage/logs
|
||||
- ./backups:/app/storage/app/backups
|
||||
|
||||
# --- nginx
|
||||
nginx:
|
||||
@ -54,5 +54,4 @@ volumes:
|
||||
linkace_app:
|
||||
linkace_logs:
|
||||
db:
|
||||
external: true
|
||||
driver: local
|
||||
|
@ -11,7 +11,7 @@ printf "\n${CG}==============================\n"
|
||||
printf " LinkAce Docker Update Script \n"
|
||||
printf "==============================\n\n"
|
||||
|
||||
printf "${CW}This script assumes you are using the standard Docker setup for Linkace. Only use this script if you did NOT modify any Docker-related files.\n${CR}Please make a backup of your database before you continue!\n"
|
||||
printf "${CW}This script assumes you are using the standard Docker setup for Linkace. Only use this script if you did NOT modify any Docker-related files.\n${CR}PLEASE MAKE A BACKUP OF YOUR DATABASE BEFORE YOU CONTINUE!\n"
|
||||
|
||||
# Confirm that the user wants to update now
|
||||
printf "\n${CR}Do you want to upgrade LinkAce now? [y/n]${CW} "
|
||||
@ -26,7 +26,13 @@ command -v docker-compose >/dev/null 2>&1 || {
|
||||
}
|
||||
|
||||
printf "\n> Deleting the application container volume...\n"
|
||||
docker-compose down
|
||||
docker-compose stop
|
||||
if grep -q "linkace/linkace:simple" docker-compose.yml; then
|
||||
docker container rm linkace_app_1
|
||||
else
|
||||
docker container rm linkace_app_1
|
||||
docker container rm linkace_nginx_1
|
||||
fi
|
||||
|
||||
printf "\n> Deleting the application container volume...\n"
|
||||
docker volume rm linkace_linkace_app
|
||||
|
Loading…
x
Reference in New Issue
Block a user