forked from LFGBanditLabs/Quipay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (83 loc) · 2.01 KB
/
docker-compose.yml
File metadata and controls
89 lines (83 loc) · 2.01 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
version: "3.8"
services:
postgres:
image: postgres:16-alpine
container_name: quipay-postgres
restart: always
environment:
- POSTGRES_USER=quipay
- POSTGRES_PASSWORD=quipay_password
- POSTGRES_DB=quipay_dev
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U quipay -d quipay_dev"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:alpine
container_name: quipay-redis
restart: always
ports:
- "6379:6379"
stellar-local:
image: stellar/quickstart:latest
container_name: quipay-stellar
command: --standalone --enable-soroban-rpc
ports:
- "8000:8000"
- "8001:8001"
environment:
- NETWORK=standalone
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: quipay-backend
restart: always
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
environment:
- PORT=3001
- NODE_ENV=development
- DATABASE_URL=postgres://quipay:quipay_password@postgres:5432/quipay_dev
- REDIS_URL=redis://redis:6379
- STELLAR_RPC_URL=http://stellar-local:8000/rpc
- STELLAR_NETWORK=STANDALONE
ports:
- "3001:3001"
healthcheck:
test:
[
"CMD-SHELL",
'wget -qO- http://localhost:3001/health | grep -q ''"status":"ok"''',
]
interval: 15s
timeout: 5s
retries: 5
start_period: 20s
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: quipay-frontend
restart: always
depends_on:
backend:
condition: service_healthy
stellar-local:
condition: service_started
environment:
- VITE_API_URL=http://localhost:3001
- VITE_API_BASE_URL=http://backend:3001
- VITE_STELLAR_RPC_URL=http://localhost:8000/rpc
ports:
- "5173:80"
volumes:
postgres_data: