-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose-online.yml
More file actions
54 lines (51 loc) · 1.41 KB
/
Copy pathdocker-compose-online.yml
File metadata and controls
54 lines (51 loc) · 1.41 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
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: changerawr_postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: changerawr
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d changerawr"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
app:
image: ghcr.io/supernova3339/changerawr:latest
container_name: changerawr_app
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/changerawr?schema=public"
JWT_ACCESS_SECRET: "your_jwt_secret_key_here_change_me"
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
GITHUB_ENCRYPTION_KEY: "abcdef1234567890abcdef1234567890"
ANALYTICS_SALT: "your_secure_analytics_salt_here"
NODE_ENV: "production"
ports:
- "3000:3000"
volumes:
- app_uploads:/app/uploads
- app_public:/app/public/generated
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/api/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
volumes:
postgres_data:
driver: local
app_uploads:
driver: local
app_public:
driver: local