-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (43 loc) · 1.2 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
version: '3.7'
# These containers are the one needed to make the app work
# Other container are available in docker-compose.override.yml if needed
# see documentation [link] for more info
services:
web:
container_name: web
build:
context: ./web
dockerfile: Dockerfile
# env_file:
# - web.env
environment:
- FLASK_APP=b3desk
volumes:
- ./web/logs:/var/log
- ./web/b3desk:/opt/bbb-visio/b3desk
- ./web/instance:/opt/bbb-visio/instance
- ./web/migrations:/opt/bbb-visio/migrations
- ./web/translations:/opt/bbb-visio/translations
ports:
- 5000:5000
worker:
container_name: worker
depends_on:
- broker
build:
context: ./web
dockerfile: Dockerfile-celery
# env_file:
# - web.env # to get shared REDIS_URL
# WORKER NEEDS TO HAVE REDIS_URL ENV VAR SET, either by shared.env or web.env
environment:
- APP=tasks.celery
volumes:
- ./web/b3desk:/usr/src/app
command: celery --app tasks.celery worker --loglevel=info
broker:
container_name: broker
image: redis:6-alpine
healthcheck:
test: [ "CMD-SHELL", "redis-cli ping | grep PONG" ]
start_period: 5s