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
webif the result looks similar to this:docker network ls | grep webyou're good to continue.c3f6d40ce98a web bridge localIf not, then create the `web` network
docker network create web
- In your
/etc/hostsfile pointdocker.localto127.0.0.1 - Rename
.env.samplefile to.envand 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 Pluginin their name. - Set static home page in WordPress Settings -> Reading
- Visit Themes page and activate
zerotheme - 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