add nextjs app: yoga-app
This commit is contained in:
15
environment/infra/docker-compose/yogastic/.env.example
Normal file
15
environment/infra/docker-compose/yogastic/.env.example
Normal 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
|
||||
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user