-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 1.45 KB
/
docker-compose.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
services:
gateway:
image: nginx
volumes:
- ./etc/nginx.conf:/etc/nginx/nginx.conf
- ./etc/htpasswd:/etc/nginx/conf.d/.htpasswd
- ./etc/cert.pem:/etc/nginx/cert.pem
- ./etc/cert.key:/etc/nginx/cert.key
ports:
- "8443:443"
alto-frontend:
image: openalto/alto
volumes:
- ./src/alto:/usr/local/lib/python3.10/site-packages/alto
- ./etc/alto.conf:/opt/alto/etc/alto.conf
entrypoint: gunicorn
command: ["-b", "0.0.0.0:8000", "--reload", "alto.server.northbound.wsgi", "--preload", "--capture-output"]
alto-lg-agent:
image: openalto/alto
volumes:
- ./etc/lg-agent.json:/etc/lg-agent.json
- ./etc/alto.conf:/opt/alto/etc/alto.conf
entrypoint: python
command: ["-m", "alto.agent.manage", "--pid", "/tmp", "start", "-c", "/etc/lg-agent.json", "-D", "cernlg"]
network_mode: "service:alto-frontend"
alto-cric-agent:
image: openalto/alto
volumes:
- ./etc/cric-agent.json:/etc/cric-agent.json
- ./etc/alto.conf:/opt/alto/etc/alto.conf
entrypoint: python
command: ["-m", "alto.agent.manage", "--pid", "/tmp", "start", "-c", "/etc/cric-agent.json", "-D", "cric"]
network_mode: "service:alto-frontend"
alto-db:
image: redis
network_mode: "service:alto-frontend"
alto-client:
image: curlimages/curl
volumes:
- ./etc/cert.pem:/etc/cert.pem
- ./etc/cert.key:/etc/cert.key
entrypoint: sh
command: ["-c", "tail -f /dev/null"]