-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.release.yml
More file actions
90 lines (85 loc) · 2.52 KB
/
Copy pathdocker-compose.release.yml
File metadata and controls
90 lines (85 loc) · 2.52 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
89
90
# Production / install.sh compose file.
# Pulls pre-built images from GHCR. Override FILEBASE_VERSION to pin a
# specific release (defaults to `latest`).
#
# Usage:
# FILEBASE_VERSION=v0.1.0 docker compose -f docker-compose.release.yml up -d
#
services:
api:
image: ghcr.io/binary-brawlers/filebase-api:${FILEBASE_VERSION:-latest}
env_file: .env
environment:
DATABASE_URL: postgres://filebase:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}@postgres:5432/filebase
REDIS_URL: redis://redis:6379
LOCAL_STORAGE_PATH: /var/lib/filebase/uploads
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "${API_PORT:-8080}:8080"
volumes:
- uploads_data:/var/lib/filebase/uploads
security_opt:
- no-new-privileges:true
restart: unless-stopped
worker:
image: ghcr.io/binary-brawlers/filebase-worker:${FILEBASE_VERSION:-latest}
env_file: .env
environment:
DATABASE_URL: postgres://filebase:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}@postgres:5432/filebase
REDIS_URL: redis://redis:6379
LOCAL_STORAGE_PATH: /var/lib/filebase/uploads
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- uploads_data:/var/lib/filebase/uploads
security_opt:
- no-new-privileges:true
restart: unless-stopped
dashboard:
image: ghcr.io/binary-brawlers/filebase-dashboard:${FILEBASE_VERSION:-latest}
env_file: .env
environment:
API_URL: http://api:8080
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8080}
depends_on:
- api
ports:
- "${DASHBOARD_PORT:-3000}:3000"
security_opt:
- no-new-privileges:true
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: filebase
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env}
POSTGRES_DB: filebase
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U filebase -d filebase"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
redis:
image: redis:7-alpine
command: ["redis-server", "--appendonly", "yes"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
restart: unless-stopped
volumes:
postgres_data:
uploads_data: