-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.58 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
version: "3.9"
# Production compose — suitable for Phala Cloud TDX CVM deployment.
#
# Build + push to Docker Hub:
# docker compose build
# docker compose push
#
# Deploy on Phala (pull pre-built image, no local source needed):
# docker compose pull
# docker compose up
#
# Local dev (adds hot-reload volume mount):
# docker compose -f docker-compose.yml -f docker-compose.override.yml up
#
# DNS note: UDP port 53 is blocked inside the Phala TDX CVM.
# DKIM key lookups use DNS-over-HTTPS (https://1.1.1.1/dns-query) via
# HTTPS port 443 which is allowed. No extra network config required.
services:
app:
build: .
image: kkoci/dealproof:latest
platform: linux/amd64
ports:
- "8000:8000"
env_file:
- .env
environment:
- DSTACK_SIMULATOR_ENDPOINT=http://dstack-simulator:8090
- MEMORY_SERVICE_URL=http://memory-service:4011
depends_on:
- dstack-simulator
- memory-service
dstack-simulator:
image: phalanetwork/tappd-simulator:latest
platform: linux/amd64
ports:
- "8090:8090"
memory-service:
build:
context: ./memory-service
dockerfile: Dockerfile
image: kkoci/dealproof-memory:latest
platform: linux/amd64
ports:
- "4011:4011"
volumes:
- memory-data:/data
environment:
- MEMORY_DB_PATH=/data/memory.db
- PORT=4011
- MEMORY_PROVIDER=${MEMORY_PROVIDER:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
restart: unless-stopped
volumes:
memory-data: