Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
107 lines (99 loc) · 2.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
107 lines (99 loc) · 2.02 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
106
107
services:
brocast_api:
container_name: brocast_api
build:
context: .
dockerfile: Dockerfile
env_file: .env
networks:
- default
ports:
- 5000:5000
restart: always
volumes:
- ${SHARED_DIR}:/app/static/uploads/
- ./app/migrations:/app/migrations
command: "/bin/sh boot.sh"
depends_on:
- brocast_db
- redis
- minio
links:
- brocast_db
- redis
- minio
brocast_db:
container_name: brocast_db
env_file: .env
image: postgres:latest
networks:
- default
ports:
- 5432:5432
restart: always
shm_size: 1g
command:
- "postgres"
- "-c"
- "max_connections=1000"
- "-c"
- "max_parallel_workers=32"
- "-c"
- "max_parallel_workers_per_gather=8"
- "-c"
- "shared_buffers=4096MB"
redis:
image: redis:7.0.10
ports:
- 6379:6379
command:
- redis-server
worker:
build:
context: .
dockerfile: Dockerfile
env_file: .env
networks:
- default
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ${SHARED_DIR}:/app/static/uploads/
depends_on:
- redis
- brocast_db
- minio
command: "poetry run celery -A app.celery_worker.tasks worker -l info"
minio:
image: cgr.dev/chainguard/minio:latest
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
networks:
- default
cron_worker:
build:
context: .
dockerfile: Dockerfile
env_file: .env
networks:
- default
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ${SHARED_DIR}:/app/static/uploads/
depends_on:
- redis
- brocast_db
command: "python main_cron.py"
volumes:
minio_data: