All you need to do after using this template is adding 2 submodules, a backend at /api
and a frontend at /web
.
All the containers run on their own seperated network. The network is configured in a bridge configuration
- Add .env files
pnpm install
docker-compose up --build -d
pnpm -r run migrate:dev
pnpm -r run dev
docker-compose down
Remove docker containers, remember to shutdown first.
docker-compose rm
Remove all unused container volumes.
docker volume prune
docker-compose logs -f db
docker-compose logs -f redis
docker-compose exec db /bin/bash
docker-compose exec redis /bin/bash
This container is running our postgres server.
Port 5432 is exposed to the host.
The container running our redis caching server.
Port 6379 is exposed to the host.