-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 1.01 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
version: "3.8"
services:
db:
image: postgres:15
container_name: postgres_db
restart: always
environment:
POSTGRES_USER: fastapi
POSTGRES_PASSWORD: fastapi
POSTGRES_DB: files_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:alpine
container_name: redis
restart: always
ports:
- "6379:6379"
minio:
image: minio/minio
container_name: minio
restart: always
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ACCESS_KEY: admin
MINIO_SECRET_KEY: admin123
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
celery_worker:
build: .
container_name: celery_worker
depends_on:
- redis
command: celery -A celery_app.celery_worker worker --loglevel=info --pool=solo
restart: always
environment:
REDIS_URL: redis://redis:6379/0
volumes:
- .:/app
volumes:
postgres_data:
minio_data: