-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
79 lines (74 loc) · 1.82 KB
/
docker-compose.yaml
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
services:
searxng:
image: docker.io/searxng/searxng:latest
volumes:
- ./searxng:/etc/searxng:rw
ports:
- 4000:8080
networks:
- starknet-agent-network
restart: unless-stopped
starknet-agent-backend:
container_name: starknet-agent-backend
build:
context: .
dockerfile: backend.dockerfile
args:
- SEARXNG_API_URL=http://searxng:8080
network: host
deploy:
resources:
limits:
memory: 4G
depends_on:
- searxng
ports:
- 3001:3001
volumes:
- backend-dbstore:/home/starknet-agent/data
extra_hosts:
- 'host.docker.internal:host-gateway'
networks:
- starknet-agent-network
environment:
- NODE_ENV=production
restart: unless-stopped
starknet-agent-frontend:
container_name: starknet-agent-frontend
build:
context: .
dockerfile: app.dockerfile
args:
- NEXT_PUBLIC_API_URL=https://backend.agent.starknet.id/api
- NEXT_PUBLIC_WS_URL=wss://backend.agent.starknet.id
- NEXT_PUBLIC_HOSTED_MODE=true
depends_on:
- starknet-agent-backend
ports:
- 3000:3000
networks:
- starknet-agent-network
environment:
- CHOKIDAR_USEPOLLING=true
restart: unless-stopped
nginx:
image: valian/docker-nginx-auto-ssl
restart: on-failure
ports:
- 80:80
- 443:443
volumes:
- ssl_data:/etc/resty-auto-ssl
environment:
ALLOWED_DOMAINS: '(backend.)?agent.starknet.id'
SITES: 'backend.agent.starknet.id=starknet-agent-backend:3001;agent.starknet.id=starknet-agent-frontend:3000'
networks:
- starknet-agent-network
depends_on:
- starknet-agent-backend
- starknet-agent-frontend
networks:
starknet-agent-network:
volumes:
backend-dbstore:
ssl_data: