- Define the variables in the .env file as per your needs;
- Deploy with docker-compose:
docker-compose -f stack.yml up -d
- Define the variables in the .env file as per your needs;
- Load the variables (Note that the variables will be loaded to your environment and will persist until the end of session. If you want to avoid this, you can launch bash again with command
bash
and executeexit
after you're done):
set -o allexport; source .env; set +o allexport
- Deploy in docker swarm:
docker stack deploy -c stack.yml yourStackName
- .env: file with variables used to configure and auto-install Wordpress..
- custom.ini: custom directives for php (see https://www.php.net/manual/en/ini.core.php).
- install.php: this is the install script from an original Wordpress, modified to auto-install using environment variables. The added code is within the comments
NOT ORIGINAL WORDPRESS
andNOT ORIGINAL WORDPRESS END
. The commented out code is within the commentsORIGINAL WORDPRESS
andORIGINAL WORDPRESS END
. - stack.yml: the docker file.