Compare commits

...

2 Commits

Author SHA1 Message Date
1bafb844f2
worker: Set the default storage size to 5gb
All checks were successful
Build Docker / Build Bot (push) Successful in 25s
Build Docker / Build Master (push) Successful in 27s
2023-08-25 22:35:18 +10:00
f23f361ceb
worker: Set docker to use HNSProxy to allow for HNS resolution 2023-08-25 22:34:50 +10:00
2 changed files with 24 additions and 2 deletions

View File

@ -24,6 +24,21 @@ python3 -m pip install -r requirements.txt
cp .env.example .env
chmod +x wp.sh tlsa.sh
# Add proxy to docker
mkdir ~/.docker
echo """{
\"proxies\": {
\"default\": {
\"httpProxy\": \"http://proxy.hnsproxy.au:80\",
\"httpsProxy\": \"https://proxy.hnsproxy.au:443\",
\"noProxy\": \"localhost\"
}
}
}""" > ~/.docker/config.json
# Restart docker
sudo systemctl restart docker
# Pull docker images to save time later
docker pull mysql:5.7 &
docker pull wordpress:latest &

View File

@ -56,9 +56,16 @@ services:
WORDPRESS_DB_PASSWORD: $MYSQL_PASSWORD
WORDPRESS_DB_NAME: WordPressDatabase
volumes:
[\"./:/var/www/html\"]
- data:/var/www/html
volumes:
mysql: {}
mysql:
data:
driver: local
driver_opts:
o: "size=5g,uid=1000"
device: tmpfs
type: tmpfs
""" > docker-compose.yml
# Start the containers