-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (69 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
79 lines (69 loc) · 1.73 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
version: '3.8'
services:
app:
build: .
ports:
- "5000:5000"
environment:
# Database Configuration
DATABASE_URL: postgresql://username:password@db:5432/high_bred_bullies
PGHOST: db
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: your_secure_password
PGDATABASE: high_bred_bullies
# Authentication
JWT_SECRET: your_jwt_secret_key_32_characters_minimum
# Stripe Payment Processing
STRIPE_SECRET_KEY: sk_test_your_stripe_secret_key
VITE_STRIPE_PUBLIC_KEY: pk_test_your_stripe_public_key
# OpenAI Integration
OPENAI_API_KEY: your_openai_api_key
# Email Configuration
SMTP_HOST: your_smtp_host
SMTP_PORT: 587
SMTP_USER: your_smtp_username
SMTP_PASS: your_smtp_password
SMTP_FROM: noreply@yourdomain.com
# Application
NODE_ENV: production
PORT: 5000
depends_on:
- db
restart: unless-stopped
volumes:
- ./logs:/app/logs
networks:
- app-network
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: high_bred_bullies
POSTGRES_USER: postgres
POSTGRES_PASSWORD: your_secure_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
restart: unless-stopped
networks:
- app-network
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/nginx/ssl
depends_on:
- app
restart: unless-stopped
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
postgres_data: