forked from nathansutton/ml-api-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
42 lines (38 loc) · 986 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
41
42
version: '3'
services:
# this is only used in CI
postgres:
image: postgres:11-alpine
container_name: postgres
environment:
- POSTGRES_DB=$PGDATABASE
- POSTGRES_USER=$PGUSER
- POSTGRES_PASSWORD=$PGPASSWORD
volumes:
- ./volumes/postgres/data:/var/lib/postgresql/data
- ./volumes/python:/opt
ports:
- "$PGPORT:5432"
python:
build: "./containers/python"
container_name: python
command: /bin/bash -c "jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=8888 --no-browser --allow-root"
env_file:
- .env
volumes:
- ./volumes/notebooks:/opt/notebooks
- ./volumes/static:/opt/static
ports:
- "8888:8888"
fastapi:
build: "./containers/fastapi"
container_name: fastapi
volumes:
- ./volumes/static:/opt/static
ports:
- "8080:8080"
streamlit:
build: "./containers/streamlit"
container_name: streamlit
ports:
- "8501:8501"