forked from Summer-Bootcamp-2024/SML
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (91 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
97 lines (91 loc) · 1.8 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
services:
frontend:
container_name: frontend
build:
context: ./Frontend
dockerfile: Dockerfile.prod
ports:
- "5173:5173"
volumes:
- build_folder:/frontend/dist
networks:
- teamM
tty: true
stdin_open: true
backend:
container_name: backend
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "8000:8000"
depends_on:
elasticsearch:
condition: service_healthy
postgresql:
condition: service_started
redis:
condition: service_started
restart: always
env_file:
- .env
tty: true
networks:
- teamM
postgresql:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
ports:
- "5432:5432"
networks:
- teamM
redis:
image: redis:latest
ports:
- "6379:6379"
networks:
- teamM
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- "9200:9200"
healthcheck:
test: ["CMD-SHELL", "curl -fsSL http://localhost:9200/_cluster/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- teamM
nginx:
container_name: nginx
build:
context: ./nginx
ports:
- "80:80"
volumes:
- build_folder:/var/www/frontend
depends_on:
- frontend
- backend
networks:
- teamM
volumes:
postgres_data:
esdata:
build_folder:
networks:
teamM:
driver: bridge