-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (79 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
89 lines (79 loc) · 1.62 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
version: '3.8'
services:
mct-app:
build:
context: .
dockerfile: Dockerfile
container_name: mct-app
ports:
- 443:443
depends_on:
- db
- elasticsearch
- redis
restart: always
volumes:
- app_files:/app/mct_app/files
- logs:/app/logs
- migrations:/app/migrations
- banned_ip:/app/banned_ip
celery:
build:
context: .
dockerfile: Dockerfile.celery
container_name: celery
environment:
FLASK_APP: manage
depends_on:
- db
- redis
- elasticsearch
restart: always
db:
image: postgres:16.3
container_name: db
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: mct_app_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
restart: always
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
restart: always
pg_admin:
image: dpage/pgadmin4
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: postgres@postgres.com
PGADMIN_DEFAULT_PASSWORD: postgres
volumes:
- pgadmin_data:/var/lib/pgadmin
depends_on:
- db
restart: always
elasticsearch:
image: elasticsearch:7.17.22
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
mem_limit: 2GB
restart: always
volumes:
- esdata:/usr/share/elasticsearch/data
volumes:
postgres_data:
app_files:
logs:
pgadmin_data:
migrations:
banned_ip:
esdata: