mirror of
https://github.com/nicetry247/offlineacademy.git
synced 2026-07-26 11:58:44 +00:00
test
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
DATABASE_URL="file:./dev.db"
|
DATABASE_URL="file:./dev.db"
|
||||||
COURSES_ROOT="./My_Courses"
|
COURSES_ROOT="./My_Courses"
|
||||||
NEXT_PUBLIC_APP_URL="http://localhost:6767"
|
NEXT_PUBLIC_APP_URL="http://localhost:6969"
|
||||||
QUIZAPI_KEY=""
|
QUIZAPI_KEY=""
|
||||||
+12
-10
@@ -6,20 +6,22 @@ services:
|
|||||||
container_name: offlineacademy
|
container_name: offlineacademy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "6767:6767"
|
# Host:Container
|
||||||
|
- "6969:6969"
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
PORT: 6767
|
PORT: 6969
|
||||||
HOSTNAME: 0.0.0.0
|
HOSTNAME: 0.0.0.0
|
||||||
DATABASE_URL: file:./dev.db
|
# Points exactly to where the volume is mounted inside the container
|
||||||
COURSES_ROOT: ./My_Courses
|
DATABASE_URL: file:/app/prisma/dev.db
|
||||||
NEXT_PUBLIC_APP_URL: http://localhost:6767
|
COURSES_ROOT: /app/My_Courses
|
||||||
|
# Matches the port mapped to your host machine
|
||||||
|
NEXT_PUBLIC_APP_URL: http://localhost:6969
|
||||||
volumes:
|
volumes:
|
||||||
# Put your course folders wherever you want on the host,
|
# Automatically creates ./My_Courses on the host if it doesn't exist
|
||||||
# then map that folder to /app/My_Courses inside the container.
|
|
||||||
- ./My_Courses:/app/My_Courses
|
- ./My_Courses:/app/My_Courses
|
||||||
|
|
||||||
# Persist the SQLite database outside the image.
|
# Automatically creates ./prisma_data on the host to hold dev.db safely
|
||||||
- ./prisma/dev.db:/app/prisma/dev.db
|
- ./prisma_data:/app/prisma
|
||||||
Reference in New Issue
Block a user