docker network create cuppa-network
docker volume create --name=cuppa-mongo-data
docker volume create --name=cuppa-postgres-data
docker compose -p cuppa-base -f docker-compose.yml up -d --remove-orphans
environment:
- FASTIFY_PORT=3030 # fastify start
- PORT=3031 # node app.js
export $(cat .env | xargs)
docker build -t cuppa-${SERVICE_NAME} .
- for localdocker run -d --name cuppa-${SERVICE_NAME} -p ${PORT}:${PORT} -e PORT=${PORT} cuppa-${SERVICE_NAME}
- for local
docker build -t cuppa/${SERVICE_NAME}:v${VERSION} --platform linux/arm64 .
docker tag cuppa/${SERVICE_NAME}:v${VERSION} rpisoulv1.kube:31320/cuppa/${SERVICE_NAME}:v${VERSION}
docker push rpisoulv1.kube:31320/cuppa/${SERVICE_NAME}:v${VERSION}
export POSTGRESQL_CONNECTION_STRING="postgresql://postgres:postgres@localhost:5432/postgres"
node tools/db/migration.js
make build name=auth version=999
make build-local name=auth
make build-docker-local name=auth
make build-docker-local name=auth port=3030
make build-local name=finance-stats
make build-docker-local name=finance-stats
make build-docker-local name=finance-stats port=3030