This is the stack component of the sojuz project. It contains such services as:
- MySQL database
- WordPress CMS (
/backend/wp-admin/
) - Traefik router (override,
/router
) - phpMyAdmin (override,
:8888
)
- Make sure that you have defiend docker network
web
if the result looks similar to this:docker network ls | grep web
you're good to continue.c3f6d40ce98a web bridge local
If not, then create the `web` network
docker network create web
- In your
/etc/hosts
file pointdocker.local
to127.0.0.1
- Rename
.env.sample
file to.env
and maybe edit it according to your needs - Run the stack in foreground for the first time:
The output may contain vital information about what's wrong if anything
docker-compose up
- Visit https://docker.local/backend accept the self signed SSL certificate and install WordPress. The database will already be configured for you.
- Navigate to Plugins page and enable all plugins wth
SOJUZ Gutenberg Block Plugin
in their name. - Set static home page in WordPress Settings -> Reading
- Visit Themes page and activate
zero
theme - Setup your theme using Apearance -> Custtomize
- To make uploads work execute following commands:
chown :www-data wordpress/uploads chmod 775 wordpress/uploads
To startup the stack issue appropriate docker-compose command such as:
docker-compose up
for debug, or (for production):
docker-compose -f docker-compose.yml up -d