-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.template
More file actions
128 lines (117 loc) · 2.71 KB
/
Copy pathdocker-compose.yml.template
File metadata and controls
128 lines (117 loc) · 2.71 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.7"
services:
secrets-simulator:
image: mikesir87/secrets-simulator
environment:
RABBIT_USER: admin
RABBIT_PASS: password1234
FLASK_SECRET: qweqwe
volumes:
- secrets:/run/secrets:rw
ro-secret-sim:
image: mikesir87/secrets-simulator
environment:
RABBIT_USER: admin
RABBIT_PASS: password1234
FLASK_SECRET: qweqwe
volumes:
- secrets:/run/secrets:rw
webhooks:
build:
context: .
dockerfile: servers/webhooks/Dockerfile
ports:
- 8080:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- secrets:/run/secrets:ro
depends_on:
- mongo
- rabbit
- secrets-simulator
networks:
- backend
command: --http :80 --gevent 1000 --master --wsgi-file /opt/start_service.py --callable app --pyargv "--no-cli --github-fake-id 123 --no-github-init --github-api-key=231af25d0 --github-org=TNUI-UB --mongo-host=mongo"
frontend:
build:
context: .
dockerfile: servers/frontend/Dockerfile
volumes:
- /tmp/static:/static
- secrets:/run/secrets:ro
ports:
- 9090:80
depends_on:
- mongo
- rabbit
- secrets-simulator
networks:
- backend
command: --http :80 --gevent 1000 --http-websockets --master --wsgi-file /opt/start_frontend.py --callable app --pyargv "--mongo-host=mongo"
mongo:
image: "mongo:3.4"
container_name: "mongo"
volumes:
- mongodb-data:/data/db
expose:
- 27017
networks:
- backend
rabbit:
image: rabbitmq:3.7
hostname: rabbit
container_name: rabbit
environment:
- RABBITMQ_DEFAULT_USER_FILE=/run/secrets/RABBIT_USER
- RABBITMQ_DEFAULT_PASS_FILE=/run/secrets/RABBIT_PASS
volumes:
- ro-secrets:/run/secrets:ro
depends_on:
- ro-secret-sim
expose:
- 5672
networks:
- results
- backend
agent-base:
build:
context: .
dockerfile: agents/base/Dockerfile
networks:
- results
image: agent-base
command: "true"
agent-bootstrap:
build:
context: .
dockerfile: agents/agent-bootstrap/Dockerfile
image: agent-bootstrap
command: "true"
agent-python3:
build: agents/agent-python3
image: agent-python3
depends_on:
- agent-base
command: "true"
agent-telegram:
build: agents/agent-telegram
image: agent-telegram
depends_on:
- agent-python3
command: "true"
networks:
backend:
driver: bridge
name: backend
results:
internal: true
name: results
volumes:
mongodb-data:
driver: local
secrets:
driver: local
name: grademe-secrets
ro-secrets:
driver: local
name: readonly-secrets