-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (83 loc) · 2.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (83 loc) · 2.42 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
version: "3.9"
services:
postgres:
image: postgres:15-alpine
container_name: ciphertrust_postgres
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: ciphertrust
POSTGRES_PASSWORD: ciphertrust_secret
POSTGRES_DB: ciphertrust
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ciphertrust"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: ciphertrust_redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: ciphertrust_backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql+asyncpg://ciphertrust:ciphertrust_secret@postgres:5432/ciphertrust
- REDIS_URL=redis://redis:6379
- ALGORAND_NODE_URL=${ALGORAND_NODE_URL:-https://testnet-api.algonode.cloud}
- ALGORAND_INDEXER_URL=${ALGORAND_INDEXER_URL:-https://testnet-idx.algonode.cloud}
- ALGORAND_NETWORK=${ALGORAND_NETWORK:-testnet}
- ALGORAND_DEPLOYER_MNEMONIC=${ALGORAND_DEPLOYER_MNEMONIC}
- SECRET_KEY=${SECRET_KEY:-supersecretkey_change_in_production}
- JWT_ALGORITHM=HS256
- ACCESS_TOKEN_EXPIRE_MINUTES=60
- SUPABASE_URL=${SUPABASE_URL:-}
- SUPABASE_ANON_KEY=${SUPABASE_ANON_KEY:-}
- SMTP_HOST=${SMTP_HOST:-}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USER=${SMTP_USER:-}
- SMTP_PASSWORD=${SMTP_PASSWORD:-}
- SMTP_FROM=${SMTP_FROM:-noreply@ciphertrust.io}
- SMTP_TLS=${SMTP_TLS:-true}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./zk-circuits/build:/app/zk-circuits/build:ro
- ./backend:/app
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: ciphertrust_frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
- NEXT_PUBLIC_ALGORAND_NETWORK=testnet
depends_on:
- backend
volumes:
postgres_data:
redis_data: