Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (77 loc) · 1.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
84 lines (77 loc) · 1.63 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
version: '3.8'
services:
api-db:
image: postgres:14-alpine
container_name: md2docx_api-db
env_file:
- ./.api_db.env
rabbitmq:
image: rabbitmq:alpine
container_name: md2docx_rabbitmq
ports:
- "5672:5672"
- "15672:15672"
env_file:
- ./.rabbitmq.env
redis:
image: redis:alpine
container_name: md2docx_redis
ports:
- "6379:6379"
env_file:
- ./.redis.env
api:
build: ./backend
container_name: md2docx_api
command: |
sh -c "uvicorn --host 0.0.0.0 --port 8000 --reload api.main:app --log-config logging.yaml"
volumes:
- ./backend/:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./.env
depends_on:
- api-db
celery:
build: ./backend
container_name: md2docx_celery
command: |
celery -A api.main:celery_app worker -l info -c 1
volumes:
- ./backend/:/usr/src/app/
env_file:
- ./.env
depends_on:
- api-db
- rabbitmq
- redis
celery-win:
build:
context: ./backend
dockerfile: Dockerfile.win
container_name: md2docx_celery-win
profiles: ["win"]
command: |
celery -A api.main:celery_app worker -l info -c 1
volumes:
- ./backend/:/usr/src/app/
env_file:
- ./.env
depends_on:
- rabbitmq
- redis
celery-beat:
build: ./backend
container_name: md2docx_celery-beat
profiles: ["celery-beat"]
command: |
celery -A api.main:celery_app beat -l info
volumes:
- ./backend/:/usr/src/app/
env_file:
- ./.env
depends_on:
- api-db
- rabbitmq
- redis