-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (81 loc) · 2.79 KB
/
docker-compose.yml
File metadata and controls
88 lines (81 loc) · 2.79 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
88
# ──────────────────────────────────────────────────────────
# Openship — Self-Hosted Docker Compose
#
# Quick start:
# cp .env.example .env
# docker compose up -d
#
# This spins up the full Openship stack:
# • Dashboard (Next.js) → localhost:3001
# • Web / Landing → localhost:3000
# • API (Hono) → localhost:4000
# • PostgreSQL → localhost:5432
# • Redis → localhost:6379
# ──────────────────────────────────────────────────────────
version: "3.9"
services:
# ─── Database ─────────────────────────────────────────
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: openship
POSTGRES_PASSWORD: openship
POSTGRES_DB: openship
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# ─── Cache / Queue ───────────────────────────────────
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
# ─── API ──────────────────────────────────────────────
api:
build:
context: .
dockerfile: apps/api/Dockerfile
restart: unless-stopped
ports:
- "4000:4000"
environment:
NODE_ENV: production
PORT: 4000
CLOUD_MODE: "false"
DEPLOY_MODE: docker
DATABASE_URL: postgresql://openship:openship@postgres:5432/openship
REDIS_URL: redis://redis:6379
JWT_SECRET: change-me-in-production
BETTER_AUTH_SECRET: change-me-in-production # used for session signing
depends_on:
- postgres
- redis
# ─── Dashboard ────────────────────────────────────────
dashboard:
build:
context: .
dockerfile: apps/dashboard/Dockerfile
restart: unless-stopped
ports:
- "3001:3001"
environment:
NODE_ENV: production
depends_on:
- api
# ─── Web / Landing ───────────────────────────────────
web:
build:
context: .
dockerfile: apps/web/Dockerfile
restart: unless-stopped
ports:
- "3505:3000"
environment:
NODE_ENV: production
volumes:
postgres_data:
redis_data: