-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (66 loc) · 1.42 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
services:
postgresql:
container_name: mmli-backend-postgresql
image: postgres:15
networks:
- mmli-net
restart: always
ports:
- "5432:5432"
env_file:
- .env
volumes:
- "postgres:/var/lib/postgresql/data"
- "./seeds:/data/seeds"
minio:
container_name: mmli-backend-minio
image: minio/minio
networks:
- mmli-net
ports:
- "9001:9001"
- "9002:9002"
env_file:
- .env
volumes:
- "minio:/data"
command: server --console-address ":9001" /data
rest:
container_name: mmli-backend
image: moleculemaker/mmli-backend:kubejob
restart: on-failure
networks:
- mmli-net
command:
[
"uvicorn",
"main:app",
"--host",
"0.0.0.0",
"--port",
"8080",
"--reload"
]
depends_on:
- postgresql
- minio
build:
context: .
ports:
- "8080:8080"
env_file:
- .env
volumes:
- ./app:/code/app
- ./migrations:/code/migrations
- $HOME/.kube/config:/opt/kubeconfig
- $HOME/.minikube/ca.crt:$HOME/.minikube/ca.crt
- $HOME/.minikube/profiles/minikube/client.crt:$HOME/.minikube/profiles/minikube/client.crt
- $HOME/.minikube/profiles/minikube/client.key:$HOME/.minikube/profiles/minikube/client.key
networks:
mmli-net:
#external: true
name: mmli-net
volumes:
postgres:
minio: