Files
offlineacademy/docker-compose.yml
T
Nice Try 32f9c58b80 test
2026-06-26 16:57:04 +08:00

27 lines
814 B
YAML

services:
offlineacademy:
build:
context: .
dockerfile: Dockerfile
container_name: offlineacademy
restart: unless-stopped
ports:
# Host:Container
- "6969:6969"
env_file:
- .env
environment:
NODE_ENV: production
PORT: 6969
HOSTNAME: 0.0.0.0
# Points exactly to where the volume is mounted inside the container
DATABASE_URL: file:/app/prisma/dev.db
COURSES_ROOT: /app/My_Courses
# Matches the port mapped to your host machine
NEXT_PUBLIC_APP_URL: http://localhost:6969
volumes:
# Automatically creates ./My_Courses on the host if it doesn't exist
- ./My_Courses:/app/My_Courses
# Automatically creates ./prisma_data on the host to hold dev.db safely
- ./prisma_data:/app/prisma