Compare commits
2 Commits
457a57739a
...
1bafb844f2
Author | SHA1 | Date | |
---|---|---|---|
1bafb844f2 | |||
f23f361ceb |
@ -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 &
|
||||
|
11
worker/wp.sh
11
worker/wp.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user