add nextjs app: yoga-app

This commit is contained in:
Schneider Roland
2025-01-10 07:42:36 +01:00
parent ae5d34c6f5
commit f059417376
12 changed files with 262 additions and 507 deletions

View File

@@ -0,0 +1,15 @@
# Copy from .env.local on the Vercel dashboard
# https://nextjs.org/learn/dashboard-app/setting-up-your-database#create-a-postgres-database
POSTGRES_URL="postgres://nextjs:nextjs@nextjs-db:5432/nextjs"
POSTGRES_URL_NON_POOLING="postgres://nextjs:nextjs@nextjs-db:5432/nextjs"
POSTGRES_USER="nextjs"
POSTGRES_HOST="nextjs-db"
POSTGRES_PORT="5432"
POSTGRES_PASSWORD="nextjs"
POSTGRES_DATABASE="nextjs"
# `openssl rand -base64 32`
AUTH_SECRET=
AUTH_URL=http://localhost:3000/api/auth
COMPOSE_PROJECT_NAME=yoga-infra

View File

@@ -27,7 +27,7 @@ services:
volumes:
- strapi-db:/var/lib/mysql
ports:
- "4011:3306"
- "4021:3306"
nextjs-db:
image: postgres:17
@@ -38,12 +38,13 @@ services:
volumes:
- next-db:/var/lib/postgresql/data
ports:
- "4012:5432"
- "4022:5432"
app:
image: docker.rschneider.hu/infra/yoga-app:202501071722.a8b144f
image: docker.rschneider.hu/infra/yoga-app:202501081712.9d7bb39
platform: linux/amd64
ports:
- "4081:3000"
- "4023:3000"
environment:
POSTGRES_URL: ${POSTGRES_URL}
POSTGRES_URL_NON_POOLING: ${POSTGRES_URL_NON_POOLING}
@@ -56,7 +57,7 @@ services:
cms:
image: docker.rschneider.hu/infra/yoga-cms:202501071722.a8b144f
ports:
- "4082:1337"
- "4024:1337"
volumes:
next-db: {}