-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (98 loc) · 2.19 KB
/
docker-compose.yml
File metadata and controls
105 lines (98 loc) · 2.19 KB
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
services:
app:
build: ./backend
container_name: oculus_backend
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
volumes:
- data_volume:/data
env_file:
- .env
depends_on:
- redis
- mongo
#- gjtiff-fastapi
restart: always
celery-worker:
container_name: oculus_celery-worker
build: ./backend
command: celery -A app.infrastructure.celery.celery_app.celery worker -l info
volumes:
- data_volume:/data
env_file:
- .env
depends_on:
- redis
- mongo
restart: always
celery-worker-processing:
build: ./backend
container_name: oculus_celery-worker-processing
command: celery -A app.infrastructure.celery.celery_app.celery worker -Q process_task_queue --concurrency=1 -l info
volumes:
- data_volume:/data
env_file:
- .env
depends_on:
- redis
- mongo
restart: always
celery-beat:
build: ./backend
container_name: oculus_celery-beat
command: celery -A app.infrastructure.celery.celery_app.celery beat --loglevel=info
volumes:
- data_volume:/data
depends_on:
- redis
- mongo
env_file:
- .env
restart: always
redis:
image: redis:7
container_name: oculus_redis
ports:
- "6379:6379"
restart: always
mongo:
image: mongo:6
container_name: oculus_mongo
ports:
- "27017:27017"
restart: always
# gjtiff-fastapi:
# build: gjtiff-fastapi
# container_name: oculus_gjtiff_fastapi
# ports:
# - "8001:8000"
# depends_on:
# - gjtiff
#
# gjtiff-clone:
# image: alpine/git
# volumes:
# - ./gjtiff:/gjtiff
# - ./gjtiff-clone/gjtiff-clone.sh:/gjtiff-clone.sh
# entrypoint: ["/gjtiff-clone.sh"]
# restart: no
#
# gjtiff:
# build: ./gjtiff
# container_name: oculus_gjtiff
# command: [ "sleep", "infinity" ]
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# depends_on:
# - gjtiff-clone
# volumes:
# - ./gjtiff:/gjtiff
# - data_volume:/data
volumes:
data_volume: