Skip to content

OurUncomplicatedTemplates/docker-compose-api-web-postgres-redis-template

Repository files navigation

Project Template

All you need to do after using this template is adding 2 submodules, a backend at /api and a frontend at /web.

Docker containers

All the containers run on their own seperated network. The network is configured in a bridge configuration

Development

Install
  • Add .env files
pnpm install
Start
docker-compose up --build -d
pnpm -r run migrate:dev
pnpm -r run dev
Stop
docker-compose down

General

Remove

Remove docker containers, remember to shutdown first.

docker-compose rm
Prune

Remove all unused container volumes.

docker volume prune
Logs
docker-compose logs -f db
docker-compose logs -f redis
SSH
docker-compose exec db /bin/bash
docker-compose exec redis /bin/bash

db

This container is running our postgres server.

Port 5432 is exposed to the host.

redis

The container running our redis caching server.

Port 6379 is exposed to the host.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published