-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (49 loc) · 1.04 KB
/
docker-compose.yml
File metadata and controls
49 lines (49 loc) · 1.04 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
version: "3.6"
services:
restapi:
image: labelspeech_backend
build: backend/.
restart: always
depends_on:
- db
env_file:
- .env
ports:
- "8000:8000"
entrypoint: ["python3", "main.py"]
db:
image: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=labelspeech_db
ports:
- "5432:5432"
volumes:
- ./postgres_data:/var/lib/postgresql/data
minio:
image: minio/minio
command: server /data
ports:
- '9000:9000'
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=s3_secret_key
restart: always
volumes:
- ./minio-data:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
nginx:
image: label_nginx
build: frontend/
hostname: "labelspeech.your.address"
restart: always
ports:
- "80:80"
volumes:
- ./frontend:/public