File size: 1,096 Bytes
5a0b87c
 
 
 
 
 
 
 
 
 
 
 
b4d7558
5a0b87c
 
 
b4d7558
5a0b87c
 
 
 
 
0ba2011
5a0b87c
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.8'

services:
  # The main CodeVerse Next.js App
  codeverse-app:
    build: 
      context: .
      dockerfile: Dockerfile
    image: codeverse:latest
    container_name: codeverse-dashboard
    restart: unless-stopped
    ports:
      - "7860:7860"
    environment:
      - NODE_ENV=production
      # Ensure you pass these variables through to your instance in production
      - NEXTAUTH_URL=${NEXTAUTH_URL:-http://localhost:7860}
      - NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
      - GITHUB_ID=${GITHUB_ID}
      - GITHUB_SECRET=${GITHUB_SECRET}
      - TURSO_DATABASE_URL=${TURSO_DATABASE_URL}
      - TURSO_AUTH_TOKEN=${TURSO_AUTH_TOKEN}
      - AUTH_TRUST_HOST=${AUTH_TRUST_HOST:-true}
      # Tell the app where local workspaces are mounted
      - DATA_PATH=/app/codeverse-data
    volumes:
      # CRITICAL: Mount the host machine's docker socket so this container can spawn siblings
      - /var/run/docker.sock:/var/run/docker.sock
      # Mount persistent storage for your workspaces
      - codeverse_data:/app/codeverse-data

volumes:
  codeverse_data:
    driver: local