build: fix Docker image build and add Docker Hub compose

This commit is contained in:
Nice Try
2026-06-26 03:33:58 +00:00
parent f0c6b12cb3
commit 65eaa9471a
3 changed files with 80 additions and 22 deletions
+23
View File
@@ -0,0 +1,23 @@
services:
offlineacademy:
image: nicetry247/offlineacademy:latest
container_name: offlineacademy
restart: unless-stopped
ports:
- "6767:6767"
env_file:
- .env
environment:
NODE_ENV: production
PORT: 6767
HOSTNAME: 0.0.0.0
DATABASE_URL: file:./dev.db
COURSES_ROOT: ./My_Courses
NEXT_PUBLIC_APP_URL: http://localhost:6767
volumes:
# Put your course folders wherever you want on the host,
# then map that folder to /app/My_Courses inside the container.
- ./My_Courses:/app/My_Courses
# Persist the SQLite database outside the image.
- ./prisma/dev.db:/app/prisma/dev.db