-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (54 loc) · 2.06 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
# =============================================================================
# Team360 Docker Compose - Application Services Only
# Database must be provided externally (see docs/DOCKER.md for details)
# =============================================================================
services:
# ---------------------------------------------------------------------------
# Backend API
# ---------------------------------------------------------------------------
api:
image: ghcr.io/${GITHUB_REPOSITORY_OWNER:-anthropics}/teams360-api:${VERSION:-latest}
build:
context: ./backend
dockerfile: Dockerfile
container_name: teams360-api
environment:
# DATABASE_URL must be provided at runtime
# Example: DATABASE_URL=postgres://user:pass@host:5432/dbname?sslmode=require
DATABASE_URL: ${DATABASE_URL:?DATABASE_URL is required}
PORT: ${API_PORT:-8080}
GIN_MODE: ${GIN_MODE:-release}
ports:
- "${API_PORT:-8080}:8080"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
start-period: 10s
retries: 3
restart: unless-stopped
# ---------------------------------------------------------------------------
# Frontend
# ---------------------------------------------------------------------------
frontend:
image: ghcr.io/${GITHUB_REPOSITORY_OWNER:-anthropics}/teams360-frontend:${VERSION:-latest}
build:
context: ./frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8080}
container_name: teams360-frontend
environment:
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8080}
ports:
- "${FRONTEND_PORT:-3000}:3000"
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 3s
start-period: 15s
retries: 3
restart: unless-stopped