Refactor setup script and Docker Compose file to improve structure and remove unnecessary lines
This commit is contained in:
parent
57e6c3893d
commit
e0228574fa
9
setup.sh
9
setup.sh
@ -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"
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user