-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (39 loc) · 940 Bytes
/
docker-compose.yaml
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
version: '3'
services:
elasticsearch:
image: elasticsearch:8.12.0
environment:
- discovery.type=single-node
ports:
- "9200:9200"
db:
image: mysql:8.0
container_name: tp-igl-db
restart: always
volumes:
- data:/var/lib/mysql
environment:
MYSQL_DATABASE: ScientificArticlesSearch
MYSQL_USER: khaledbenmachiche
MYSQL_PASSWORD: UHQY3LgJPE8o
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "--silent"]
timeout: 20s
retries: 10
backend:
build:
context: .
dockerfile: Dockerfile
container_name: tp-igl-backend
command: sh -c "python3 manage.py migrate --noinput && python3 manage.py collectstatic --noinput && python manage.py runserver 0.0.0.0:8000"
restart: always
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
volumes:
data: