forked from FinesseStudioLab/Trivela
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
74 lines (70 loc) · 1.93 KB
/
compose.yaml
File metadata and controls
74 lines (70 loc) · 1.93 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
services:
backend:
image: node:20-alpine
working_dir: /app/backend
command: sh -c "npm install && npm run dev"
environment:
PORT: 3001
CORS_ALLOWED_ORIGINS: http://localhost:5173
STELLAR_NETWORK: testnet
ports:
- '3001:3001'
volumes:
- ./:/app
- backend_node_modules:/app/backend/node_modules
frontend:
image: node:20-alpine
working_dir: /app/frontend
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
environment:
VITE_API_URL: http://backend:3001
VITE_STELLAR_NETWORK: testnet
depends_on:
- backend
ports:
- '5173:5173'
volumes:
- ./:/app
- frontend_node_modules:/app/frontend/node_modules
redis:
image: redis:7-alpine
profiles: ['redis']
ports:
- '6379:6379'
# #288 — Distributed tracing collector. Opt-in via the `tracing`
# profile so it doesn't run on every `compose up`. Backend exporter
# posts traces to http://jaeger:4318/v1/traces; UI is reachable at
# http://localhost:16686.
jaeger:
image: jaegertracing/all-in-one:1.62
profiles: ['tracing']
environment:
COLLECTOR_OTLP_ENABLED: 'true'
ports:
- '16686:16686' # UI
- '4318:4318' # OTLP/HTTP
- '4317:4317' # OTLP/gRPC
# PostgreSQL service for issue #284. Enable with:
# docker compose --profile postgres up
# Then point the backend at it via:
# DATABASE_URL=postgres://trivela:trivela@postgres:5432/trivela
postgres:
image: postgres:16-alpine
profiles: ['postgres']
environment:
POSTGRES_USER: trivela
POSTGRES_PASSWORD: trivela
POSTGRES_DB: trivela
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U trivela -d trivela']
interval: 5s
timeout: 5s
retries: 5
volumes:
backend_node_modules:
frontend_node_modules:
postgres_data: