-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
106 lines (98 loc) · 2.61 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
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
version: '3'
services:
nginx:
restart: always
build:
context: nginx
args:
PROXY_LRS_ROOT: "${HOSTNAME}"
PROXY_PORT: "${PROXY_PORT}"
container_name: docker_nginx
volumes:
- ./nginx/letsencrypt:/usr/share/nginx/html
- ./certbot/etc:/usr/share/keys
ports:
- 80:80
- 443:443
# Certbot for SSL automation
#
certbot:
container_name: 'docker_certbot'
image: certbot/certbot
volumes:
- ./keys:/var/lib/letsencrypt
- ./nginx/letsencrypt:/data/letsencrypt
- ./certbot/etc:/etc/letsencrypt
- ./certbot/log:/var/log/letsencrypt
depends_on:
- nginx
# Database for LRS statements
postgres:
restart: always
build:
context: postgres
container_name: docker_postgres
# Persist this data between sessions
volumes:
- ./postgres/data:/var/lib/postgresql/data
# Required for activity metadata
amqp:
restart: always
image: "rabbitmq:3-management"
hostname: "rabbit1"
environment:
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
RABBITMQ_DEFAULT_VHOST: "/"
container_name: docker_rabbit
# The actual ADL LRS service run through uWSGI
lrs:
restart: always
build:
context: lrs
container_name: docker_lrs
links:
- postgres
- amqp
ports:
- 127.0.0.1:8000:8000
lrs-proxy-1:
restart: always
build:
context: kafka-lrs-proxy
container_name: proxy_1
environment:
PORT: "${PROXY_PORT}"
PROXY_INFER: "${PROXY_INFER}"
PROXY_LRS_ROOT: "${PROXY_LRS_ROOT}"
KAFKA_BROKER: "${KAFKA_BROKER}"
KAFKA_XAPI_TOPIC: "${KAFKA_XAPI_TOPIC}"
KAFKA_SASL_USER: "${KAFKA_SASL_USER}"
KAFKA_SASL_PASS: "${KAFKA_SASL_PASS}"
lrs-proxy-2:
restart: always
build:
context: kafka-lrs-proxy
container_name: proxy_2
environment:
PORT: "${PROXY_PORT}"
PROXY_INFER: "${PROXY_INFER}"
PROXY_LRS_ROOT: "${PROXY_LRS_ROOT}"
KAFKA_BROKER: "${KAFKA_BROKER}"
KAFKA_XAPI_TOPIC: "${KAFKA_XAPI_TOPIC}"
KAFKA_SASL_USER: "${KAFKA_SASL_USER}"
KAFKA_SASL_PASS: "${KAFKA_SASL_PASS}"
lrs-proxy-3:
restart: always
build:
context: kafka-lrs-proxy
container_name: proxy_3
environment:
PORT: "${PROXY_PORT}"
PROXY_INFER: "${PROXY_INFER}"
PROXY_LRS_ROOT: "${PROXY_LRS_ROOT}"
KAFKA_BROKER: "${KAFKA_BROKER}"
KAFKA_XAPI_TOPIC: "${KAFKA_XAPI_TOPIC}"
KAFKA_SASL_USER: "${KAFKA_SASL_USER}"
KAFKA_SASL_PASS: "${KAFKA_SASL_PASS}"