-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (70 loc) · 1.63 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
67
68
69
70
71
72
version: '3.5'
services:
minio:
image: minio/minio:latest
container_name: minio
hostname: minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
command: server /data --console-address ":9001"
networks:
- thesis_network
minio_mc:
container_name: minio_mc
image: minio/mc:latest
depends_on:
- minio
volumes:
- ./models:/media
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set minio http://minio:9000 minio minio123;
/usr/bin/mc mb minio/saved-images;
/usr/bin/mc mb minio/saved-models;
/usr/bin/mc anonymous set public minio/saved-images;
/usr/bin/mc anonymous set public minio/saved-models;
/usr/bin/mc cp -r /media/ minio/saved-models;
"
networks:
- thesis_network
flask_app:
container_name: flask_app
restart: unless-stopped
build:
context: ./api
dockerfile: Dockerfile
environment:
FLASK_ENV: dev
FLASK_APP: main.py
FLASK_RUN_HOST: 0.0.0.0
ports:
- "5000:5000"
volumes:
- ./api:/api
depends_on:
- mongodb
- minio_client
- minio
networks:
- thesis_network
mongodb:
image: mongo:latest
container_name: mongodb
hostname: mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: root_user
MONGO_INITDB_ROOT_PASSWORD: root_pwd
MONGO_DB_NAME: image_data
ports:
- "27017:27017"
networks:
- thesis_network
networks:
thesis_network:
name: thesis_app_network