This repository was archived by the owner on Apr 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (82 loc) · 2.36 KB
/
docker-compose.yml
File metadata and controls
87 lines (82 loc) · 2.36 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# ================================
# Docker Compose for KomikStream
# Local development environment
# ================================
services:
# ==================== APPLICATION ====================
app:
build:
context: .
dockerfile: Dockerfile
target: runner
container_name: KuroManga-app
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- DATABASE_URL=${DATABASE_URL}
- NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
- CLERK_SECRET_KEY=${CLERK_SECRET_KEY}
- CLERK_WEBHOOK_SECRET=${CLERK_WEBHOOK_SECRET}
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-https://www.sankavollerei.com}
depends_on:
db:
condition: service_healthy
networks:
- KuroManga-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# ==================== DATABASE ====================
db:
image: postgres:16-alpine
container_name: KuroManga-db
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER:-KuroManga}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-KuroManga_secret}
- POSTGRES_DB=${POSTGRES_DB:-KuroManga}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- KuroManga-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-KuroManga} -d ${POSTGRES_DB:-KuroManga}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
# ==================== DEV ONLY ====================
# Uncomment for local development with hot reload
# app-dev:
# build:
# context: .
# dockerfile: Dockerfile.dev
# container_name: KuroManga-dev
# ports:
# - "3000:3000"
# volumes:
# - .:/app
# - /app/node_modules
# - /app/.next
# environment:
# - NODE_ENV=development
# - DATABASE_URL=postgresql://KuroManga:KuroManga_secret@db:5432/KuroManga
# depends_on:
# - db
# networks:
# - KuroManga-network
# ==================== VOLUMES ====================
volumes:
postgres_data:
driver: local
# ==================== NETWORKS ====================
networks:
KuroManga-network:
driver: bridge