-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 966 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 966 Bytes
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
version: '3.7'
services:
db:
image: postgres:15
container_name: file_processor_db
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
volumes:
- postgresdata:/var/lib/postgresql/data
env_file:
- .env-docker
ports:
- 5432:5432
redis:
image: redis:7
container_name: file_processor_cache
file_processor_drf:
build:
context: .
dockerfile: Dockerfile
container_name: file_processor_drf_app
env_file:
- .env-docker
depends_on:
db:
condition: service_healthy
command:
- "docker/app.sh"
ports:
- "7777:8000"
celery:
build: .
container_name: file_processor_celery
env_file:
- .env-docker
command:
- "docker/celery.sh"
depends_on:
- file_processor_drf
- redis
volumes:
postgresdata: