-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 996 Bytes
/
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
version: "3.9"
services:
db:
image: mysql:8.0.28
restart: always
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=lab_manager
- MYSQL_USER=lab_manager
- MYSQL_PASSWORD=superStrongPassword
ports:
- "3306:3306"
volumes:
- ./db:/var/lib/mysql
networks:
- default
esearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
restart: always
environment:
- discovery.type=single-node
ports:
- "9200:9200"
- "9300:9300"
networks:
- default
server:
build:
context: .
dockerfile: Dockerfile
depends_on:
- esearch
- db
networks:
- default
ports:
- "5000:5000"
environment:
FLASK_ENV: production
DB_USER: lab_manager
DB_PASSWORD: superStrongPassword
DB_HOST: db
DB_PORT: "3306"
DB_NAME: lab_manager
ELASTICSEARCH_URL: http://elasticsearch:9200
volumes:
db: