-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.18 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
services:
postgres:
image: postgres:16-alpine
profiles: ["full", "backend"]
environment:
POSTGRES_DB: agentic_payments
POSTGRES_USER: agent
POSTGRES_PASSWORD: agent
ports: ["5432:5432"]
volumes: ["pgdata:/var/lib/postgresql/data"]
anvil:
image: ghcr.io/foundry-rs/foundry:latest
profiles: ["full", "backend"]
entrypoint: ["anvil", "--host", "0.0.0.0"]
ports: ["8545:8545"]
backend:
build:
context: .
dockerfile: Dockerfile
profiles: ["full", "backend"]
environment:
- API_HOST=0.0.0.0
- CORS_ORIGINS=http://localhost,http://localhost:3000,http://app.agentpay.io
ports:
- "8080:8080"
- "9000:9000"
depends_on:
- postgres
- anvil
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
profiles: ["full", "frontend"]
environment:
- NEXT_PUBLIC_API_URL=/api
ports:
- "3000:3000"
depends_on:
- backend
nginx:
image: nginx:alpine
profiles: ["full"]
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- backend
volumes:
pgdata: