-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
61 lines (55 loc) · 1.29 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
version: '3.5'
services:
redis:
image: cvexplore-redis
hostname: redis
restart: always
build:
context: .
dockerfile: backend/docker/from_git/images/dockerfile-redis
volumes:
- redis_data:/data
ports:
- "127.0.0.1:6379:6379"
celery_daemon:
image: cvexplore-celery_daemon
build:
context: .
dockerfile: backend/docker/from_git/images/dockerfile-celery_daemon
depends_on:
- redis
env_file:
- ${HOME}/.cvexplore/.env
deploy:
replicas: 2
restart: always
environment:
- PYTHONUNBUFFERED=TRUE
volumes:
- celery_data:/app/data
celery_beat:
image: cvexplore-celery_beat
build:
context: .
dockerfile: backend/docker/from_git/images/dockerfile-celery_beat
depends_on:
- redis
env_file:
- ${HOME}/.cvexplore/.env
restart: always
environment:
- PYTHONUNBUFFERED=TRUE
volumes:
- celery_data:/app/data
fix-named-volumes-permissions:
# the image doesn't matter; easiest to use the same as the target docker service
image: cvexplore-celery_daemon
user: root
command: chown basicuser:basicuser -R /app/data
volumes:
- celery_data:/app/data
volumes:
celery_data:
driver: local
redis_data:
driver: local