-
Notifications
You must be signed in to change notification settings - Fork 148
/
docker-compose.yml
102 lines (95 loc) · 2.18 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
version: '3'
services:
# Database for LRS statements
postgres:
restart: always
image: library/postgres:9.5
ports:
- "127.0.0.1:5432:5432"
container_name: docker_postgres
environment:
POSTGRES_DB: lrs
POSTGRES_USER: lrs_owner
POSTGRES_PASSWORD: lrs_password
# Persist this data between sessions
volumes:
- ./docker/data/postgres:/var/lib/postgresql/data
networks:
- public
# Required for activity metadata
redis:
restart: always
image: redis:7
container_name: docker_redis
ports:
- "127.0.0.1:6379:6379"
volumes:
- ./docker/data/redis:/data
networks:
- public
# 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
ports:
- "15672:15672"
- "5672:5672"
networks:
- public
# The actual ADL LRS service run through uWSGI
lrs:
restart: always
build:
context: .
ports:
- "127.0.0.1:8000:8000"
container_name: docker_lrs
links:
- postgres
- amqp
networks:
- public
volumes:
- ./docker/data/lrs/logs:/opt/lrs/logs
# nginx proxy used to handle LRS traffic
nginx:
restart: always
build:
context: docker/nginx
args:
HOSTNAME: "${HOSTNAME}"
ports:
- "80:80"
- "443:443"
container_name: docker_nginx
volumes:
- ./docker/nginx/letsencrypt:/usr/share/nginx/html
- ./docker/certbot/etc:/usr/share/keys
links:
- lrs
networks:
- public
# Certbot for SSL automation
#
certbot:
container_name: 'docker_certbot'
image: certbot/certbot
volumes:
- ./docker/keys:/var/lib/letsencrypt
- ./docker/nginx/letsencrypt:/data/letsencrypt
- ./docker/certbot/etc:/etc/letsencrypt
- ./docker/certbot/log:/var/log/letsencrypt
depends_on:
- nginx
networks:
- public
networks:
public:
driver: bridge