-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (39 loc) · 1.12 KB
/
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
43
44
45
version: '3.7'
services:
app:
build: ./
volumes:
# - ./app:/app/app/
# - ./models:/app/models
- ./:/app
ports:
- 8501:8501
image: yourstreamlitapp:latest
#
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.dockage1.entrypoints=web, websecure"
# - "traefik.http.routers.dockage1.rule=Host(`atomhack.xplogene-ai.com`)"
# - "traefik.http.routers.dockage1.tls=true"
# - "traefik.http.routers.dockage1.tls.certresolver=production"
# - "traefik.tcp.services.kafka-broker.loadbalancer.server.port=8501"
command: >
bash -c "ls -la && streamlit run streamlit_app.py --server.port 8501"
environment:
- NVIDIA_VISIBLE_DEVICES=all
deploy:
mode: replicated
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
device_ids: [ '0' ]
capabilities: [ gpu ]
#
#networks:
# default:
# name: traefik
# external: true
#
#