-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (80 loc) · 2.62 KB
/
docker-compose.yml
File metadata and controls
84 lines (80 loc) · 2.62 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
services:
postgres:
image: postgres:16-alpine
container_name: bsds-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-bsds_dashboard}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${DB_PASSWORD:-changeme}
volumes:
- postgres_data:/var/lib/postgresql/data
network_mode: host
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
seed:
build:
context: .
target: seed
container_name: bsds-seed
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://postgres:${DB_PASSWORD:-changeme}@host.docker.internal:5432/${POSTGRES_DB:-bsds_dashboard}
NEXTAUTH_URL: ${NEXTAUTH_URL:-http://localhost:3000}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
RAZORPAY_KEY_ID: ${RAZORPAY_KEY_ID:-}
RAZORPAY_KEY_SECRET: ${RAZORPAY_KEY_SECRET:-}
RAZORPAY_WEBHOOK_SECRET: ${RAZORPAY_WEBHOOK_SECRET:-}
RAZORPAY_TEST_MODE: ${RAZORPAY_TEST_MODE:-true}
WHATSAPP_API_TOKEN: ${WHATSAPP_API_TOKEN:-}
WHATSAPP_PHONE_NUMBER_ID: ${WHATSAPP_PHONE_NUMBER_ID:-}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-}
APP_URL: ${APP_URL:-http://localhost:3000}
CRON_SECRET: ${CRON_SECRET:-}
NEXT_PUBLIC_TEST_MODE: ${NEXT_PUBLIC_TEST_MODE:-false}
command: ["sh", "./scripts/docker-seed.sh"]
profiles:
- tools
app:
build: .
container_name: bsds-app
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://postgres:${DB_PASSWORD:-changeme}@host.docker.internal:5432/${POSTGRES_DB:-bsds_dashboard}
NEXTAUTH_URL: ${NEXTAUTH_URL:-http://localhost:3000}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
RAZORPAY_KEY_ID: ${RAZORPAY_KEY_ID:-}
RAZORPAY_KEY_SECRET: ${RAZORPAY_KEY_SECRET:-}
RAZORPAY_WEBHOOK_SECRET: ${RAZORPAY_WEBHOOK_SECRET:-}
RAZORPAY_TEST_MODE: ${RAZORPAY_TEST_MODE:-true}
WHATSAPP_API_TOKEN: ${WHATSAPP_API_TOKEN:-}
WHATSAPP_PHONE_NUMBER_ID: ${WHATSAPP_PHONE_NUMBER_ID:-}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-}
APP_URL: ${APP_URL:-http://localhost:3000}
CRON_SECRET: ${CRON_SECRET:-}
NEXT_PUBLIC_TEST_MODE: ${NEXT_PUBLIC_TEST_MODE:-false}
caddy:
image: caddy:2-alpine
container_name: bsds-caddy
restart: unless-stopped
depends_on:
- app
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
volumes:
postgres_data:
caddy_data:
caddy_config: