This commit is contained in:
Cold-Egg
2019-12-20 15:56:15 -05:00
parent 3442bc5cba
commit 6a7461e3fd
24 changed files with 17 additions and 7 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
LITESPEED=1.5.10wp
LITESPEED=1.5.10
WEB_ADMIN_PASSWORD=123456
WEB_ADMIN_PASSWORD=litespeed
MYSQL_DATABASE=wordpress
MYSQL_ROOT_PASSWORD=password
+8 -1
View File
@@ -1,4 +1,5 @@
language: bash
sudo: 'required'
notifications:
@@ -22,7 +23,13 @@ install:
- docker-compose up -d
before_script:
- curl http://localhost:80/
- docker image ls
- docker ps
- curl -Ik http://localhost:80/
after_script:
- docker-compose stop
- docker-compose rm -f
#after_success:
# - if [[ "$TRAVIS_BRANCH" == "master" ]]; then
@@ -38,6 +38,5 @@ COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
WORKDIR /var/www/html/
CMD ["/usr/local/lsws/bin/openlitespeed","-n"]
@@ -1,15 +1,17 @@
#!/bin/bash
cd localhost/html
cd /var/www/html
if [ ! -f "./wp-config.php" ]; then
# su -s /bin/bash www-data -c
COUNTER=0
until [ "$(curl -v mysql:3306 2>&1 | grep native)" ];
do
echo "Counter: ${COUNTER}"
COUNTER=$((COUNTER+1))
if [ ${COUNTER} = 10 ]; then
echo '--- MySQL is starting, please wait... ---'
elif [ ${COUNTER} = 100 ]; then
echo '--- MySQL is timeout, exit! ---'
exit 1
fi
sleep 1
done
@@ -33,7 +35,7 @@ if [ ! -f "./wp-config.php" ]; then
--skip-email \
--allow-root
wp plugin install litespeed-cache \
--activate
--activate \
--allow-root
fi
+3 -1
View File
@@ -18,12 +18,14 @@ services:
- .env
volumes:
- ./sites:/var/www/html/
- ./sites:/usr/local/lsws/Example/logs/access.log
- ./sites/logs:/usr/local/lsws/logs/
ports:
- 80:80
- 443:443
- 7080:7080
environment:
- WEB_ADMIN_PASSWORD=${WEB_ADMIN_PASSWORD}
WEB_ADMIN_PASSWORD: ${WEB_ADMIN_PASSWORD}
restart: always
adminer:
image: dockette/adminer:full
BIN
View File
Binary file not shown.
View File
View File
View File