-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
81 lines (73 loc) · 2.2 KB
/
docker-compose-dev.yml
File metadata and controls
81 lines (73 loc) · 2.2 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
services:
annotrieve-nginx:
build:
context: ./front
dockerfile: Dockerfile
restart: always
volumes:
- /home/emilior/annotrieve-project/annotrieve/files:/data/annotrieve/files:ro
- /home/emilior/annotrieve-project/annotrieve/logs:/var/log/nginx
ports:
- "94:80"
annotrieve-mongo:
image: mongo:8.0
env_file:
- .env
restart: always
volumes:
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
- /home/emilior/annotrieve-project/annotrieve-db:/data/db
ports:
- "27021:27017"
logging:
driver: "none"
annotrieve-redis:
image: "redis:alpine"
expose:
- "6379"
annotrieve-fastapi:
build: ./server
container_name: annotrieve-fastapi
restart: always
command: uvicorn main:app --host 0.0.0.0 --port 5000 --reload
volumes:
- ./server:/home/appuser/app
- /home/emilior/annotrieve-project/annotrieve/files:${LOCAL_ANNOTATIONS_DIR}
- /home/emilior/annotrieve-project/annotrieve/logs:${LOCAL_LOGS_PATH}:ro
env_file:
- .env
depends_on:
- annotrieve-redis
- annotrieve-mongo
ports:
- "5002:5000" # Exposing on a different port to avoid conflicts
annotrieve-fastapi-celery:
build: ./server
command: celery --app celery_app.celery_worker.app worker --loglevel=info --autoscale=1,1 --max-tasks-per-child=1
volumes:
- ./server:/home/appuser/app
- /home/emilior/annotrieve-project/annotrieve/files:${LOCAL_ANNOTATIONS_DIR}
- /home/emilior/annotrieve-project/annotrieve/logs:${LOCAL_LOGS_PATH}:ro
env_file:
- .env
depends_on:
- annotrieve-fastapi
- annotrieve-mongo
- annotrieve-redis
annotrieve-fastapi-celery-beat:
build: ./server
command: celery --app celery_app.celery_worker.app beat --loglevel=info
volumes:
- ./server:/home/appuser/app
- /home/emilior/annotrieve-project/annotrieve/files:${LOCAL_ANNOTATIONS_DIR}
- /home/emilior/annotrieve-project/annotrieve/logs:${LOCAL_LOGS_PATH}:ro
env_file:
- .env
depends_on:
- annotrieve-fastapi
- annotrieve-mongo
- annotrieve-redis
volumes:
app:
mongodb-data:
celerybeat-schedule: