-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (78 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
82 lines (78 loc) · 2.02 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
services:
dl-postgres:
container_name: dl-postgres
image: ankane/pgvector:latest
ports:
- 45432:5432
volumes:
- dl-postgres:/var/lib/postgresql/data
- ./backup:/backup
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: PassW0rd
POSTGRES_DB: db
PGDATA: /var/lib/postgresql/data
extra_hosts:
- host.docker.internal:host-gateway
networks:
- dl-net
dl-jupyter:
container_name: dl-jupyter
build:
context: .
dockerfile: ./jupyter/Dockerfile
args:
REQUIREMENTS_PATH: ./jupyter/requirements.txt
volumes:
- ./workspace:/home/jovyan
- ./core:/home/jovyan/core
- ~/Documents:/home/jovyan/Documents
- ~/Downloads:/home/jovyan/Downloads
ports:
- 48888:8888
- 45001:5001
networks:
- dl-net
env_file:
- .env
command: "start-notebook.sh --NotebookApp.token="
dl-streamlit-app:
image: streamlit-python3.12:latest
container_name: dl-streamlit-app
build:
context: .
dockerfile: ./app-streamlit/Dockerfile
args:
REQUIREMENTS_PATH: ./app-streamlit/requirements.txt
REQUIREMENTS_DEV_PATH: ./app-streamlit/requirements-dev.txt
command: streamlit run Home.py --server.port 18501
networks:
- dl-net
volumes:
- ./app-streamlit:/usr/src/app
- ./workspace:/workspace
- ./core:/usr/src/app/core
- ./files:/usr/src/app/files
- ./models:/usr/src/app/models
- ./backup:/usr/src/backup
- ./training_config.json:/usr/src/app/training_config.json
- ./training.log:/usr/src/app/training.log
ports:
- 48501:18501
env_file:
- .env
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=PassW0rd
- POSTGRES_DB=db
- POSTGRES_HOST=dl-postgres
- POSTGRES_PORT=5432
- DATABASE_URL=postgresql://admin:PassW0rd@dl-postgres:5432/db
depends_on:
- dl-postgres
volumes:
dl-postgres:
driver: local
networks:
dl-net:
driver: bridge