-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathlms.yml
156 lines (146 loc) · 4.07 KB
/
lms.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: "3"
services:
db:
image: postgres:14-alpine
ports:
- 5432:5432
volumes:
- db-data-volume:/pg_data
environment:
- PGDATA=/pg_data/14/data
- POSTGRES_DB=${DB_NAME:-db}
- POSTGRES_USER=${DB_USERNAME:-postgres}
- POSTGRES_PASSWORD=${DB_PASSWORD:-postgres}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $DB_USERNAME -d $DB_NAME"]
interval: 30s
timeout: 30s
retries: 3
networks:
- lms
rabbitmq:
image: rabbitmq:3.9-management-alpine
hostname: celery-mq
volumes:
- rabbit-data-volume:/var/lib/rabbitmq
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./rabbitmq.cookie:/var/lib/rabbitmq/.erlang.cookie
networks:
- lms
mailer:
image: lms:latest
command: celery -A lms.utils worker
volumes:
- ../lms/utils/:/app_dir/lms/utils/
environment:
- CELERY_RABBITMQ_ERLANG_COOKIE=AAVyo5djdSMGIZXiwEQs3JeVaBx5l14z
- CELERY_RABBITMQ_DEFAULT_USER=rabbit-user
- CELERY_RABBITMQ_DEFAULT_PASS=YgKlCvnYVzpTa3T9adG3NrMoUNe4Z5aZ
- CELERY_MAILER_VHOST=utils
- CELERY_RABBITMQ_HOST=rabbitmq
- CELERY_RABBITMQ_PORT=5672
links:
- rabbitmq
depends_on:
- rabbitmq
networks:
- lms
checks-sandbox:
image: lms:latest
command: celery -A lms.lmstests.sandbox worker
volumes:
- ../lms/lmstests/sandbox/:/app_dir/lms/lmstests/sandbox/
environment:
- CELERY_RABBITMQ_ERLANG_COOKIE=AAVyo5djdSMGIZXiwEQs3JeVaBx5l14z
- CELERY_RABBITMQ_DEFAULT_USER=rabbit-user
- CELERY_RABBITMQ_DEFAULT_PASS=YgKlCvnYVzpTa3T9adG3NrMoUNe4Z5aZ
- CELERY_CHECKS_SANDBOX_VHOST=lmstests-sandbox
- CELERY_RABBITMQ_HOST=rabbitmq
- CELERY_RABBITMQ_PORT=5672
links:
- rabbitmq
depends_on:
- rabbitmq
networks:
- lms
checks-docker-engine:
image: docker:dind
privileged: True
environment:
- DOCKER_TLS_CERTDIR=/certs
volumes:
- docker-engine-volume-run:/var/run/
- docker-engine-certs:/certs
- docker-engine-lib:/var/lib/docker
networks:
- lms
checks-public:
image: lms:latest
command: celery -A lms.lmstests.public worker
volumes:
- ../lms:/app_dir/lms/
- docker-engine-volume-run:/var/run/
- docker-engine-certs:/certs
- docker-engine-lib:/var/lib/docker
environment:
- DB_NAME=${DB_NAME:-db}
- DB_USER=${DB_USERNAME:-postgres}
- DB_PORT=5432
- DB_HOST=db
- DB_PASSWORD=${DB_PASSWORD:-postgres}
- CELERY_RABBITMQ_ERLANG_COOKIE=AAVyo5djdSMGIZXiwEQs3JeVaBx5l14z
- CELERY_RABBITMQ_DEFAULT_USER=rabbit-user
- CELERY_RABBITMQ_DEFAULT_PASS=YgKlCvnYVzpTa3T9adG3NrMoUNe4Z5aZ
- CELERY_CHECKS_PUBLIC_VHOST=lmstests-public
- CELERY_CHECKS_SANDBOX_VHOST=lmstests-sandbox
- CELERY_RABBITMQ_HOST=rabbitmq
- CELERY_RABBITMQ_PORT=5672
links:
- db
- rabbitmq
depends_on:
- db
- rabbitmq
networks:
- lms
http:
image: lms:latest
command: gunicorn --reload --bind 0.0.0.0:8080 --workers 5 lms.lmsweb
volumes:
- ../lms:/app_dir/lms
- ../../notebooks-tests:/app_dir/notebooks-tests
- repositories-data-volume:/repositories
environment:
- DB_NAME=${DB_NAME:-db}
- DB_USER=${DB_USERNAME:-postgres}
- DB_PORT=5432
- DB_HOST=db
- DB_PASSWORD=${DB_PASSWORD:-postgres}
- CELERY_RABBITMQ_ERLANG_COOKIE=AAVyo5djdSMGIZXiwEQs3JeVaBx5l14z
- CELERY_RABBITMQ_DEFAULT_USER=rabbit-user
- CELERY_RABBITMQ_DEFAULT_PASS=YgKlCvnYVzpTa3T9adG3NrMoUNe4Z5aZ
- CELERY_CHECKS_PUBLIC_VHOST=lmstests-public
- CELERY_RABBITMQ_HOST=rabbitmq
- CELERY_RABBITMQ_PORT=5672
- REPOSITORY_FOLDER=/repositories
links:
- db
- rabbitmq
ports:
- 8080:8080
depends_on:
- db
- rabbitmq
networks:
- lms
volumes:
docker-engine-volume-run:
docker-engine-certs:
docker-engine-lib:
db-data-volume:
rabbit-data-volume:
repositories-data-volume:
networks:
lms:
external:
name: lms