-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (111 loc) · 2.83 KB
/
Copy pathdocker-compose.yml
File metadata and controls
119 lines (111 loc) · 2.83 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Backend services for local development and Devcontainer networking.
# Start: docker compose up -d
# Sandbox: docker compose -f docker-compose.yml -f docker-compose.sandbox.yml up -d
version: '3.8'
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: agenticpay
volumes:
- agenticpay-postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres -d agenticpay']
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- '6379:6379'
command: redis-server --save 60 1 --loglevel warning
volumes:
- agenticpay-redis:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 10
loki:
image: grafana/loki:3.0.0
restart: unless-stopped
ports:
- '3100:3100'
command: -config.file=/etc/loki/local-config.yaml
volumes:
- agenticpay-loki:/loki
grafana:
image: grafana/grafana:11.0.0
restart: unless-stopped
ports:
- '3002:3000'
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_USERS_ALLOW_SIGN_UP: 'false'
volumes:
- agenticpay-grafana:/var/lib/grafana
- ./infra/logging/grafana-datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml:ro
depends_on:
- loki
backend:
image: node:20-alpine
working_dir: /app
command: sh -c "npm install && npm run dev"
ports:
- '4000:4000'
environment:
NODE_ENV: development
DATABASE_URL: postgres://postgres:postgres@postgres:5432/agenticpay
REDIS_URL: redis://redis:6379
LOG_API_URL: http://loki:3100
volumes:
- ./backend:/app
- /app/node_modules
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
develop:
watch:
- action: sync
path: ./backend
target: /app
- action: rebuild
path: ./backend/package.json
frontend:
image: node:20-alpine
working_dir: /app
command: sh -c "npm install && npm run dev"
ports:
- '3000:3000'
environment:
NODE_ENV: development
NEXT_PUBLIC_API_URL: http://backend:4000
NEXT_PUBLIC_CDN_URL: ''
NEXT_TELEMETRY_DISABLED: '1'
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
depends_on:
- backend
develop:
watch:
- action: sync
path: ./frontend
target: /app
- action: rebuild
path: ./frontend/package.json
volumes:
agenticpay-postgres:
agenticpay-redis:
agenticpay-loki:
agenticpay-grafana: