This is the server component for the Zero-theme. It links WordPress database and serves it as GraphQL API.
-
To run this component you should have docker network named
webHow to check if i have one?
docker network ls | grep web
the result should look similar to this:c3f6d40ce98a web bridge local
How to create the
webnetworkdocker network create web
-
Rename
.env.samplefile to.envand maybe change it according to your needsUPLOADS_PATHvariable can useHOSTNAMEplaceholder which will be replaced with the contents odHOSTNAMEvariable -
Run the stack in foreground for the first time:
docker-compose upThe output may contain vital information about what's wrong if anything
-
The API server is normally proxied via traefik instance provided by the so part of SOJUZ project. But for development purposes it listens override on port
4000
To start the server issue appropriate docker-compose command such as (for local development):
docker-compose up
if everything went well it should be avaliable under override http://localhost:4000
For production use:
docker-compose -f docker-compose.yml up -d
This expects you to have traefik instance which will serve the app on /graphql and /socket endpoints (based on docker labels defined in docker-compose.yml file)