schliflo / bedrock-docker Goto Github PK
View Code? Open in Web Editor NEWDevelopment Setup for Bedrock Wordpress based on Docker
Home Page: https://bedrock-docker.schliflo.de
License: MIT License
Development Setup for Bedrock Wordpress based on Docker
Home Page: https://bedrock-docker.schliflo.de
License: MIT License
Check the possibilities available to allow users to update bedrock-docker environments seamlessly
There is a way to get this working on multisite subdomain and subdirectory?
Like @schliflo wrote in other issue, we work on restructuring the project and add some features and allow a lot of optional/project specific options. We plan to release it after all our ideas are included and it works on Linux and OSX (bash scripts differ in syntax). We already use it in our daily work & projects.
To release a better working software some tests and feedback would be great.
-> Write a comment if you interested. A little bit of knowledge about development/docker would be great.
Will be some Wordpress Bedrock functionality removed?
NO, optional/dynamic configs allow to add even more CMS & project specific commands and tools and also allows to extend them without touching the released files.
Changelist (so far):
For native docker installs you need to configure your system to resolve .docker domains to 127.0.0.1
Can you point me to a guide for this.
Dinghy has issues with latest few OSX versions and xhyve
I was just checking out your code and noticed what looks like a typo.
You're checking twice for lower case "y"
input:
if [ "$backupOK" = "Yes" ] || [ "$backupOK" = "yes" ] || [ "$backupOK" = "y" ] || [ "$backupOK" = "y" ]; then
Source — https://github.com/schliflo/bedrock-docker/blob/master/.utils/mysql-backup.sh#L11
Maybe convert to uppercase or lowercase first, like so:
backupOK=`echo "$backupOK" | /usr/bin/tr '[:lower:]' '[:upper:]'`
if [ "$backupOK" == "Y" ] || [ "$backupOK" == "YES" ]; then
backupOK=`echo "$backupOK" | /usr/bin/tr '[:upper:]' '[:lower:]'`
if [ "$backupOK" == "y" ] || [ "$backupOK" == "yes" ]; then
My WP_ENV
is defined as development
on docker-compose.yml
and I added Config::define('WP_DEBUG_LOG', true);
to config/environments/development.php
on my bedrock, but the debug.log is not being generated, how I can enable it?
Would be great if this would work.
Unfortunately it does not,
Followed the instructions but receiving this error after step:
Step 2/9 : RUN apk add --no-cache musl-dev go
Error:
ERROR: unsatisfiable constraints:
musl-dev (missing):
required by: world[musl-dev]
binutils (missing):
required by: go-1.8.4-r0[binutils]
go-1.8.4-r0[binutils]
gcc (missing):
required by: go-1.8.4-r0[gcc]
go-1.8.4-r0[gcc]
ERROR: Service 'app' failed to build: The command '/bin/sh -c apk add --no-cache musl-dev go' returned a non-zero code: 4
make: *** [update] Error 1
I tried to get this working, but when I do make up
I get the error message that's in the title. It fails on line 4 and 7. When I go to the URL that's been generated, I get a Dinghy page.
I'm on Ubuntu and this is the first time I'm trying out Docker. I don't really get the following line in the README: Configure your system to resolve .docker domains to 127.0.0.1
. I added the projectname.docker URL to /etc/hosts
. Did I interpret the instruction correctly?
It also says that the PROJECT_NAME
variable hasn't been set, even though I did set it in the Makefile
.
I was just checking out your code and have questions.
Questions:
FROM amd64/nginx:alpine
?Support SSL (self-singed or something like minica) and the advantages like http2 http push and other features. Also gets rid of annoying "Warning: You will send your password in a not secure form" messages.
If you want a little more realism in your development certificates, you can use minica to generate your own local root certificate, and issue end-entity (aka leaf) certificates signed by it. You would then import the root certificate rather than a self-signed end-entity certificate.
https://letsencrypt.org/docs/certificates-for-localhost/
nginx proxy supports - CERT_NAME=
mkcert works better, because you can set the output filename and the root can be installed in firefox and chrome (and some systems).
I'm on my work PC right now and still have issues gettting this to work. The proxy server is running, but the WP site and the mail and PHPmyadmin services just point to the Dinghy proxy server welcome page. If I run make logs
I noticed that Composer exited with code 0, but I don't know if this is of any significance.
This is the output of docker-composer logs
:
Attaching to qdn-wp_test_1, qdn-wp_web_1, qdn-wp_phpmyadmin_1, qdn-wp_app_1, qdn-wp_db_1, qdn-wp_composer_1, qdn-wp_mail_1
�[33mweb_1 |�[0m 2018/11/16 12:14:08 [emerg] 1#1: invalid server name or wildcard "www..docker" on [::]:80
�[33mweb_1 |�[0m nginx: [emerg] invalid server name or wildcard "www..docker" on [::]:80
�[36mtest_1 |�[0m 2018/11/16 12:14:13 [emerg] 1#1: open() "/etc/nginx/site.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:160
�[36mtest_1 |�[0m nginx: [emerg] open() "/etc/nginx/site.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:160
�[32mphpmyadmin_1 |�[0m /usr/lib/python2.7/site-packages/supervisor/options.py:298: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
�[32mphpmyadmin_1 |�[0m 'Supervisord is running as root and it is searching '
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:05,933 CRIT Supervisor running as root (no user in config file)
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:05,933 INFO Included extra file "/etc/supervisor.d/nginx.ini" during parsing
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:05,933 INFO Included extra file "/etc/supervisor.d/php.ini" during parsing
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:05,942 INFO RPC interface 'supervisor' initialized
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:05,942 CRIT Server 'unix_http_server' running without any HTTP authentication checking
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:05,942 INFO supervisord started with pid 1
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:06,946 INFO spawned: 'php-fpm' with pid 23
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:06,949 INFO spawned: 'nginx' with pid 24
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:08,007 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
�[32mphpmyadmin_1 |�[0m 2018-11-16 12:14:08,007 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
�[31mdb_1 |�[0m Initializing database
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
�[31mdb_1 |�[0m To do so, start the server, then issue the following commands:
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m '/usr/bin/mysqladmin' -u root password 'new-password'
�[31mdb_1 |�[0m '/usr/bin/mysqladmin' -u root -h password 'new-password'
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m Alternatively you can run:
�[31mdb_1 |�[0m '/usr/bin/mysql_secure_installation'
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m which will also give you the option of removing the test
�[31mdb_1 |�[0m databases and anonymous user created by default. This is
�[31mdb_1 |�[0m strongly recommended for production servers.
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m See the MariaDB Knowledgebase at http://mariadb.com/kb or the
�[31mdb_1 |�[0m MySQL manual for more instructions.
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m Please report any problems at http://mariadb.org/jira
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m The latest information about MariaDB is available at http://mariadb.org/.
�[31mdb_1 |�[0m You can find additional information about the MySQL part at:
�[31mdb_1 |�[0m http://dev.mysql.com
�[31mdb_1 |�[0m Consider joining MariaDB's strong and vibrant community:
�[31mdb_1 |�[0m https://mariadb.org/get-involved/
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m Database initialized
�[31mdb_1 |�[0m MySQL init process in progress...
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] mysqld (mysqld 10.3.10-MariaDB-1:10.3.10+maria~bionic) starting as process 105 ...
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Using Linux native AIO
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Uses event mutexes
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Number of pools: 1
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Using SSE2 crc32 instructions
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: Completed initialization of buffer pool
�[31mdb_1 |�[0m 2018-11-16 12:14:13 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: Creating shared tablespace for temporary tables
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: Waiting for purge to start
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: 10.3.10 started; log sequence number 1631012; transaction id 21
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] Plugin 'FEEDBACK' is disabled.
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Warning] 'user' entry 'root@d4e2b72b9fa9' ignored in --skip-name-resolve mode.
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Warning] 'user' entry '@d4e2b72b9fa9' ignored in --skip-name-resolve mode.
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Warning] 'proxies_priv' entry '@% root@d4e2b72b9fa9' ignored in --skip-name-resolve mode.
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] Reading of all Master_info entries succeded
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] Added new Master_info '' to hash table
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] mysqld: ready for connections.
�[31mdb_1 |�[0m Version: '10.3.10-MariaDB-1:10.3.10+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 0 mariadb.org binary distribution
�[31mdb_1 |�[0m 2018-11-16 12:14:14 0 [Note] InnoDB: Buffer pool(s) load completed at 181116 12:14:14
�[31mdb_1 |�[0m Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
�[31mdb_1 |�[0m 2018-11-16 12:14:17 10 [Warning] 'proxies_priv' entry '@% root@d4e2b72b9fa9' ignored in --skip-name-resolve mode.
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m 2018-11-16 12:14:17 0 [Note] mysqld (initiated by: unknown): Normal shutdown
�[31mdb_1 |�[0m 2018-11-16 12:14:17 0 [Note] Event Scheduler: Purging the queue. 0 events
�[31mdb_1 |�[0m 2018-11-16 12:14:17 0 [Note] InnoDB: FTS optimize thread exiting.
�[31mdb_1 |�[0m 2018-11-16 12:14:17 0 [Note] InnoDB: Starting shutdown...
�[31mdb_1 |�[0m 2018-11-16 12:14:17 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
�[31mdb_1 |�[0m 2018-11-16 12:14:17 0 [Note] InnoDB: Buffer pool(s) dump completed at 181116 12:14:17
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Shutdown completed; log sequence number 1631021; transaction id 24
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] mysqld: Shutdown complete
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m MySQL init process done. Ready for start up.
�[31mdb_1 |�[0m
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] mysqld (mysqld 10.3.10-MariaDB-1:10.3.10+maria~bionic) starting as process 1 ...
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Using Linux native AIO
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Uses event mutexes
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Number of pools: 1
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Using SSE2 crc32 instructions
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Initializing buffer pool, total size = 256M, instances = 1, chunk size = 128M
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Completed initialization of buffer pool
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Creating shared tablespace for temporary tables
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: 10.3.10 started; log sequence number 1631021; transaction id 21
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] Plugin 'FEEDBACK' is disabled.
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] InnoDB: Buffer pool(s) load completed at 181116 12:14:18
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] Server socket created on IP: '::'.
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Warning] 'proxies_priv' entry '@% root@d4e2b72b9fa9' ignored in --skip-name-resolve mode.
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] Reading of all Master_info entries succeded
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] Added new Master_info '' to hash table
�[31mdb_1 |�[0m 2018-11-16 12:14:18 0 [Note] mysqld: ready for connections.
�[31mdb_1 |�[0m Version: '10.3.10-MariaDB-1:10.3.10+maria~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
�[34mcomposer_1 |�[0m ______
�[34mcomposer_1 |�[0m / ____/___ ____ ___ ____ ____ ________ _____
�[34mcomposer_1 |�[0m / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
�[34mcomposer_1 |�[0m / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
�[34mcomposer_1 |�[0m \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
�[34mcomposer_1 |�[0m /_/
�[34mcomposer_1 |�[0m Composer version 1.7.3 2018-11-01 10:05:06
�[34mcomposer_1 |�[0m
�[34mcomposer_1 |�[0m Usage:
�[34mcomposer_1 |�[0m command [options] [arguments]
�[34mcomposer_1 |�[0m
�[34mcomposer_1 |�[0m Options:
�[34mcomposer_1 |�[0m -h, --help Display this help message
�[34mcomposer_1 |�[0m -q, --quiet Do not output any message
�[34mcomposer_1 |�[0m -V, --version Display this application version
�[34mcomposer_1 |�[0m --ansi Force ANSI output
�[34mcomposer_1 |�[0m --no-ansi Disable ANSI output
�[34mcomposer_1 |�[0m -n, --no-interaction Do not ask any interactive question
�[34mcomposer_1 |�[0m --profile Display timing and memory usage information
�[34mcomposer_1 |�[0m --no-plugins Whether to disable plugins.
�[34mcomposer_1 |�[0m -d, --working-dir=WORKING-DIR If specified, use the given directory as working directory.
�[34mcomposer_1 |�[0m -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
�[34mcomposer_1 |�[0m
�[34mcomposer_1 |�[0m Available commands:
�[34mcomposer_1 |�[0m about Shows the short information about Composer.
�[34mcomposer_1 |�[0m archive Creates an archive of this composer package.
�[34mcomposer_1 |�[0m browse Opens the package's repository URL or homepage in your browser.
�[34mcomposer_1 |�[0m check-platform-reqs Check that platform requirements are satisfied.
�[34mcomposer_1 |�[0m clear-cache Clears composer's internal package cache.
�[34mcomposer_1 |�[0m clearcache Clears composer's internal package cache.
�[34mcomposer_1 |�[0m config Sets config options.
�[34mcomposer_1 |�[0m create-project Creates new project from a package into given directory.
�[34mcomposer_1 |�[0m depends Shows which packages cause the given package to be installed.
�[34mcomposer_1 |�[0m deploy Runs the deploy script as defined in composer.json.
�[34mcomposer_1 |�[0m diagnose Diagnoses the system to identify common errors.
�[34mcomposer_1 |�[0m dump-autoload Dumps the autoloader.
�[34mcomposer_1 |�[0m dumpautoload Dumps the autoloader.
�[34mcomposer_1 |�[0m exec Executes a vendored binary/script.
�[34mcomposer_1 |�[0m global Allows running commands in the global composer dir ($COMPOSER_HOME).
�[34mcomposer_1 |�[0m help Displays help for a command
�[34mcomposer_1 |�[0m home Opens the package's repository URL or homepage in your browser.
�[34mcomposer_1 |�[0m i Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
�[34mcomposer_1 |�[0m info Shows information about packages.
�[34mcomposer_1 |�[0m init Creates a basic composer.json file in current directory.
�[34mcomposer_1 |�[0m install Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.
�[34mcomposer_1 |�[0m licenses Shows information about licenses of dependencies.
�[34mcomposer_1 |�[0m list Lists commands
�[34mcomposer_1 |�[0m outdated Shows a list of installed packages that have updates available, including their latest version.
�[34mcomposer_1 |�[0m prohibits Shows which packages prevent the given package from being installed.
�[34mcomposer_1 |�[0m remove Removes a package from the require or require-dev.
�[34mcomposer_1 |�[0m require Adds required packages to your composer.json and installs them.
�[34mcomposer_1 |�[0m run-script Runs the scripts defined in composer.json.
�[34mcomposer_1 |�[0m search Searches for packages.
�[34mcomposer_1 |�[0m self-update Updates composer.phar to the latest version.
�[34mcomposer_1 |�[0m selfupdate Updates composer.phar to the latest version.
�[34mcomposer_1 |�[0m show Shows information about packages.
�[34mcomposer_1 |�[0m status Shows a list of locally modified packages, for packages installed from source.
�[34mcomposer_1 |�[0m suggests Shows package suggestions.
�[34mcomposer_1 |�[0m test Runs the test script as defined in composer.json.
�[34mcomposer_1 |�[0m u Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
�[34mcomposer_1 |�[0m update Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
�[34mcomposer_1 |�[0m upgrade Upgrades your dependencies to the latest version according to composer.json, and updates the composer.lock file.
�[34mcomposer_1 |�[0m validate Validates a composer.json and composer.lock.
�[34mcomposer_1 |�[0m why Shows which packages cause the given package to be installed.
�[34mcomposer_1 |�[0m why-not Shows which packages prevent the given package from being installed.
�[36;1mmail_1 |�[0m 2018/11/16 12:13:57 Using in-memory storage
�[36;1mmail_1 |�[0m 2018/11/16 12:13:57 [SMTP] Binding to address: 0.0.0.0:1025
�[36;1mmail_1 |�[0m 2018/11/16 12:13:57 Serving under http://0.0.0.0:8025/
�[36;1mmail_1 |�[0m [HTTP] Binding to address: 0.0.0.0:8025
�[36;1mmail_1 |�[0m Creating API v1 with WebPath:
�[36;1mmail_1 |�[0m Creating API v2 with WebPath:
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[36;1mmail_1 |�[0m [APIv1] KEEPALIVE /api/v1/events
�[35mapp_1 |�[0m -> Executing /opt/docker/provision/entrypoint.d/05-permissions.sh
�[35mapp_1 |�[0m -> Executing /opt/docker/provision/entrypoint.d/20-php-fpm.sh
�[35mapp_1 |�[0m -> Executing /opt/docker/provision/entrypoint.d/20-php.sh
�[35mapp_1 |�[0m -> Executing /opt/docker/bin/service.d/supervisor.d//10-init.sh
�[35mapp_1 |�[0m 2018-11-16 12:14:05,550 INFO Included extra file "/opt/docker/etc/supervisor.d/cron.conf" during parsing
�[35mapp_1 |�[0m 2018-11-16 12:14:05,550 INFO Included extra file "/opt/docker/etc/supervisor.d/dnsmasq.conf" during parsing
�[35mapp_1 |�[0m 2018-11-16 12:14:05,550 INFO Included extra file "/opt/docker/etc/supervisor.d/php-fpm.conf" during parsing
�[35mapp_1 |�[0m 2018-11-16 12:14:05,550 INFO Included extra file "/opt/docker/etc/supervisor.d/postfix.conf" during parsing
�[35mapp_1 |�[0m 2018-11-16 12:14:05,550 INFO Included extra file "/opt/docker/etc/supervisor.d/ssh.conf" during parsing
�[35mapp_1 |�[0m 2018-11-16 12:14:05,550 INFO Included extra file "/opt/docker/etc/supervisor.d/syslog.conf" during parsing
�[35mapp_1 |�[0m 2018-11-16 12:14:05,550 INFO Set uid to user 0 succeeded
�[35mapp_1 |�[0m 2018-11-16 12:14:05,558 INFO RPC interface 'supervisor' initialized
�[35mapp_1 |�[0m 2018-11-16 12:14:05,558 INFO supervisord started with pid 1
�[35mapp_1 |�[0m 2018-11-16 12:14:06,562 INFO spawned: 'syslogd' with pid 40
�[35mapp_1 |�[0m 2018-11-16 12:14:06,565 INFO spawned: 'php-fpmd' with pid 41
�[35mapp_1 |�[0m 2018-11-16 12:14:06,566 INFO spawned: 'crond' with pid 42
�[35mapp_1 |�[0m -> Executing /opt/docker/bin/service.d/syslog-ng.d//10-init.sh
�[35mapp_1 |�[0m 2018-11-16 12:14:06,569 INFO success: php-fpmd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
�[35mapp_1 |�[0m 2018-11-16 12:14:06,569 INFO success: crond entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
�[35mapp_1 |�[0m -> Executing /opt/docker/bin/service.d/php-fpm.d//10-init.sh
�[35mapp_1 |�[0m Setting php-fpm user to application
�[35mapp_1 |�[0m -> Executing /opt/docker/bin/service.d/cron.d//10-init.sh
�[35mapp_1 |�[0m [SYSLOG] syslog-ng[40]: syslog-ng starting up; version='3.13.2'
�[35mapp_1 |�[0m [16-Nov-2018 12:14:06] NOTICE: fpm is running, pid 41
�[35mapp_1 |�[0m [16-Nov-2018 12:14:06] NOTICE: ready to handle connections
�[35mapp_1 |�[0m 2018-11-16 12:14:07,733 INFO success: syslogd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
I get this error in the web server log, when trying to access my newly set up WP site:
web_1 | 2018/07/02 20:26:45 [error] 9#9: *8 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 172.18.0.2, server: jppol-blog.docker, request: "GET /favicon.ico HTTP/1.1", host: "jppol-blog.docker", referrer: "http://jppol-blog.docker/"
I took a look in the config file for the site, and found a path which does not seem to exist on the server instance: root /var/www/html/web;
I'm not a wordpress, bedrock or docker expert at all, but this seems to be wrong?
$ make ssh web
/ # cat /etc/nginx/site.conf
server {
listen [::]:80;
listen 80;
server_name jppol-blog.docker;
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;
root /var/www/html/web;
index index.php index.htm index.html;
add_header Fastcgi-Cache $upstream_cache_status;
# Specify a charset
charset utf-8;
# Set the max body size equal to PHP's max POST size.
client_max_body_size 25m;
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#virtualbox
sendfile off;
# Prevent PHP scripts from being executed inside the uploads folder.
location ~* /app/uploads/.*\.php$ {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
include h5bp/directive-only/extra-security.conf;
include h5bp/directive-only/x-ua-compatible.conf;
include h5bp/location/cross-domain-fonts.conf;
include h5bp/location/protect-system-files.conf;
location ~ \.php$ {
try_files $uri /index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_pass app:9000;
}
}
# Redirect some domains
server {
listen [::]:80;
listen 80;
server_name www.jppol-blog.docker;
location / {
return 301 http://jppol-blog.docker$request_uri;
}
}
/ # ls -l /var/www/html/
total 960
-rw-r--r-- 1 root root 32459 Jul 2 20:15 CHANGELOG.md
-rw-r--r-- 1 root root 3188 Jul 2 20:15 CODE_OF_CONDUCT.md
-rw-r--r-- 1 root root 1068 Jul 2 20:15 LICENSE.md
-rw-r--r-- 1 root root 5767 Jul 2 20:15 README.md
drwxr-xr-x 7 root root 224 Jul 2 20:15 app
-rw-r--r-- 1 root root 1231 Jul 2 20:15 composer.json
-rw-r--r-- 1 root root 55932 Jul 2 20:15 composer.lock
drwxr-xr-x 5 root root 160 Jul 2 20:15 config
-rw-r--r-- 1 root root 560191 Jul 2 20:15 package-lock.json
-rw-r--r-- 1 root root 3200 Jul 2 20:15 package.json
-rw-r--r-- 1 root root 2239 Jul 2 20:15 phpcs.xml
drwxr-xr-x 10 root root 320 Jul 2 20:15 resources
drwxr-xr-x 15 root root 480 Jul 2 20:16 vendor
-rw-r--r-- 1 root root 300522 Jul 2 20:15 yarn.lock
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.