-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from maiorano84/feature/wordmove
Feature/wordmove
- Loading branch information
Showing
15 changed files
with
162 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.env | ||
docker/nginx/logs | ||
!docker/nginx/logs/.gitkeep | ||
logs/* | ||
!logs/**/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: '3.8' | ||
|
||
services: | ||
composer: | ||
image: composer:latest | ||
volumes: | ||
- ./code:/app | ||
networks: | ||
- default | ||
- traefik | ||
wp: | ||
extends: | ||
file: ./docker/services-common.yml | ||
service: wp | ||
networks: | ||
- default | ||
- traefik | ||
wordmove: | ||
extends: | ||
file: ./docker/services-common.yml | ||
service: wordmove | ||
networks: | ||
- default | ||
- traefik | ||
|
||
networks: | ||
traefik: | ||
external: | ||
name: traefik-network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# See: https://www.nginx.com/resources/wiki/start/topics/recipes/wordpress/ | ||
|
||
server { | ||
listen 80; | ||
server_name {{NGINX_SERVER_NAME}}; | ||
root {{NGINX_ROOT}}; | ||
index index.php; | ||
|
||
location = /favicon.ico { | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
location = /robots.txt { | ||
allow all; | ||
log_not_found off; | ||
access_log off; | ||
} | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$args; | ||
} | ||
|
||
location ~ \.php$ { | ||
include fastcgi_params; | ||
fastcgi_intercept_errors on; | ||
fastcgi_pass php:9000; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
} | ||
|
||
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | ||
expires max; | ||
log_not_found off; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ARG PHP_VERSION=7.4 | ||
|
||
FROM wordpress:php${PHP_VERSION:-7.4}-fpm-alpine | ||
COPY ./docker-entrypoint.sh /docker-entrypoint.sh | ||
RUN chmod +x /docker-entrypoint.sh | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["php-fpm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# Fixes an uploads permissions issue on Windows | ||
chown www-data:www-data -R /var/www/html | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ARG PHP_VERSION=7.4 | ||
|
||
FROM php:${PHP_VERSION}-cli-alpine | ||
ENV PAGER=more | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
|
||
RUN apk add --update ruby ruby-etc ruby-bigdecimal ruby-json ruby-io-console curl mysql-client gzip rsync openssh && \ | ||
curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar > /usr/local/bin/wp && \ | ||
chmod +x /usr/local/bin/wp && \ | ||
gem install wordmove && \ | ||
chmod +x /docker-entrypoint.sh | ||
|
||
WORKDIR /var/www/html | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
eval `ssh-agent -s` | ||
|
||
if [ ! -d "~/.ssh" ]; then | ||
mkdir -p ~/.ssh | ||
fi | ||
|
||
cp -r /wordmove/.ssh/* ~/.ssh | ||
find ~/.ssh -type f -not -name "*.pub" -not -name "known_hosts" -not -name "authorized_keys" -not -name "config" -follow -print | while read -r f; do | ||
chmod 600 $f | ||
ssh-add $f | ||
done | ||
|
||
wordmove "$@" |
Empty file.
Empty file.