Refactor setup script and Docker Compose file to improve structure and remove unnecessary lines

This commit is contained in:
whaffman 2025-07-18 09:57:12 +02:00
parent 57e6c3893d
commit e0228574fa
2 changed files with 8 additions and 6 deletions

View File

@ -12,4 +12,11 @@ for SUBDOMAIN in "${SUBDOMAINS[@]}"; do
else
echo "$SUBDOMAIN already exists in $HOSTS_FILE"
fi
done
done
if [ ! -d "/home/whaffman" ]; then
sudo mkdir -p /home/whaffman
echo "Created /home/whaffman"
fi
sudo chmod 777 /home/whaffman
echo "Granted read/write permissions to everyone for /home/whaffman"

View File

@ -18,7 +18,6 @@ services:
- data_mariadb:/var/lib/mysql
restart: unless-stopped
nginx:
container_name: nginx
build:
@ -37,15 +36,12 @@ services:
- DOMAIN_NAME=${DOMAIN_NAME}
ports:
- '443:443'
- '8443:8443'
- '8080:8080'
networks:
- docker-network
volumes:
- data_wordpress:/var/www/html
restart: unless-stopped
wordpress:
container_name: wordpress
build:
@ -160,7 +156,6 @@ networks:
docker-network:
name: docker-network
volumes:
data_mariadb:
name: data_mariadb