This project is Vue app that uses [Nuxt] to provide SSR and SEO for web application. Directus is used as a headless CMS.
See frontend README for more information.
See backend README for more information.
See CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Vue app and Directus api are hosted in Docker containers.
nmp installnpm run dev
- start -
docker compose up -d --build - stop -
docker compose down -v - logs -
docker compose logs -f
- Clone git repository.
- Copy
.env.prodand.env.prod.dbfiles to parent folder usingcp <filename> <../filename> - Edit
CHANGE_MEvalues to safe passwords etc. in those.envfiles - Start container (you may have to install
docker composecommand)
- start -
docker compose -f docker-compose.prod.yml up -d --build - stop -
docker compose -f docker-compose.prod.yml down - logs -
docker compose -f docker-compose.prod.yml logs
- Navigate to build repositary and run
git pull - Reload docker with
docker compose -f docker-compose.prod.yml up -d --build
- Go inside container -
docker exec -it {{name}} bash
See docker compose docs
| Name | Image | IP:Port | Explanation |
|---|---|---|---|
| app | http-server | 10.10.0.2:8000 | HTTP server for frontend |
| db | postgresql | 10.10.0.3:5432 | Database for Directus |
| cache | redis | 10.10.0.4 | Cache for Directus |
| directus | directus | 10.10.0.4:8001 | CMS |