forked from BetulaSuk/DGD-B-6-WebsiteSource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (61 loc) · 1.65 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
version: '3.8'
services:
backend:
build: ./services/backend
ports:
- "82:82"
environment:
- DATABASE_URL=mysql://dgd:dgd23825@db:3306/dgd_db
- SECRET_KEY=09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7
volumes:
- ./services/backend:/app
command: uvicorn src.main:app --reload --host 0.0.0.0 --port 82
depends_on:
- frontend
frontend:
build: ./services/frontend
volumes:
- './services/frontend:/app'
- './services/frontend/node_modules:/app/node_modules'
ports:
- "8080:8080"
depends_on:
- db
- elasticsearch
db:
image: mysql:8.2.0
ports:
- "3306:3306"
environment:
- LANG=C.UTF-8
- MYSQL_ROOT_PASSWORD=23825
- MYSQL_DATABASE=dgd_db
- MYSQL_USER=dgd
- MYSQL_PASSWORD=dgd23825
volumes:
- type: bind
source: ./services/mysql/data
target: /var/lib/mysql
- type: bind
source: ./services/mysql/my.cnf
target: /etc/mysql/my.cnf
elasticsearch:
image: elasticsearch:7.17.1
ports:
- "9200:9200"
- "9300:9300"
environment:
- ELASTIC_PASSWORD=es23825
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx1G"
- xpack.security.enabled=false
volumes:
- type: bind
source: ./services/elasticsearch/data
target: /usr/share/elasticsearch/data
- type: bind
source: ./services/elasticsearch/config/elasticsearch.yml
target: /usr/share/elasticsearch/config/elasticsearch.yml
- type: bind
source: ./services/elasticsearch/logs
target: /usr/share/elasticsearch/logs