-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.prod.yml
48 lines (45 loc) · 962 Bytes
/
docker-compose.prod.yml
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
version: '3'
services:
client:
build:
context: client
dockerfile: Dockerfile.prod
ports:
- '80:80'
networks:
- agent-domain
server:
build:
context: server
dockerfile: Dockerfile
ports:
- 8000:8000
- ${WEBHOOK_PORT}:${WEBHOOK_PORT}
environment:
WEBHOOK_HOST: 0.0.0.0
ADMIN_URL: http://agent:${ADMIN_PORT}
WEBHOOK_PORT: ${WEBHOOK_PORT}
networks:
- agent-domain
entrypoint: /bin/bash
command: [
"-c",
"python -u app/main.py;"
]
agent:
build:
context: agent
dockerfile: Dockerfile.prod
environment:
AGENT_NAME: ${AGENT_NAME}
PORT: ${HTTP_PORT}
ENDPOINT: http://194.61.21.227:${HTTP_PORT}
ADMIN_PORT: ${ADMIN_PORT}
WEBHOOK_URL: ${WEBHOOK_URL}
ports:
- ${HTTP_PORT}:${HTTP_PORT}
- ${ADMIN_PORT}:${ADMIN_PORT}
networks:
- agent-domain
networks:
agent-domain: