-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (94 loc) · 2.37 KB
/
docker-compose.yml
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
version: '3'
services:
web:
image: django_web
container_name: parikshana_web
command: gunicorn -b 0.0.0.0:8000 -w 6 parikshana.wsgi:application --reload
ports:
- 8000
depends_on:
- nginx
- postgres
volumes:
- .:/code
env_file:
- .env
nginx:
container_name: parikshana_nginx
restart: unless-stopped
build: ./server_config
ports:
- "80:80"
environment:
SECRET_KEY: ${secret_key}
postgres:
image: postgres:14.4-alpine3.16
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${postgres_user}
POSTGRES_DB: ${postgres_db}
POSTGRES_PASSWORD: ${postgres_password}
ports:
- "5432:5432"
storage:
container_name: min.io
image: minio/minio:RELEASE.2022-07-24T17-09-31Z
environment:
- MINIO_ROOT_USER=${minio_root_user}
- MINIO_ROOT_PASSWORD=${minio_root_password}
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./data:/data
command: server --address ":9000" --console-address ":9001" /data
celery_worker:
image: django_web
container_name: celery_worker
command: python -m celery -A parikshana worker --loglevel=INFO --concurrency=4 -n smartworker@%n -E
volumes:
- .:/code
env_file:
- .env
depends_on:
- web
celery_flower:
image: mher/flower
container_name: flower
command: celery flower --basic_auth=${flower_username}:${flower_password}
environment:
- CELERY_BROKER_URL=redis://${redis_username}:${redis_password}@${redis_host}:${redis_port}/
- FLOWER_PORT=8888
- TZ=Asia/Kolkata
ports:
- 8888:8888
volumes:
- ./flower_data:/data
depends_on:
- celery_worker
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4:6.6
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${pgadmin_default_email}
PGADMIN_DEFAULT_PASSWORD: ${pgadmin_default_password}
ports:
- 9999:80
redis:
container_name: redis
image: redis/redis-stack-server
volumes:
- ./redis:/data
environment:
- ALLOW_EMPTY_PASSWORD=NO
- REDIS_PASSWORD=${redis_password}
- REDIS_USERNAME=${redis_username}
ports:
- "6379:6379"
gotenberg:
image: gotenberg/gotenberg:latest
container_name: pdf_builder
command:
- "gotenberg"