-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
56 lines (54 loc) · 1.22 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
version: "3.2"
services:
jupyter:
# image: sage/ftworkdir
build:
context: .
dockerfile: Dockerfile
args:
ssh_pub_key: ${SSH_PUB_KEY}
entrypoint: /usr/bin/env
working_dir: /lft
env_file:
- .env
environment:
LFT_REST_IP: "rest"
# JUPYTER_ENABLE_LAB: "yes"
# JUPYTER_ALLOW_ROOT: "yes"
# command: jupyter notebook --ip 0.0.0.0 --autoreload --NotebookApp.token="${JUPYTER_TOKEN}"
command: jupyter lab --ip 0.0.0.0 --autoreload
restart: unless-stopped
volumes:
- .:/lft
ports:
- "8888:8888"
# extra_hosts:
# - "pi4.local:192.168.1.29"
# rest:
## image: sage/ftworkdir
# build:
# context: .
# dockerfile: Dockerfile.custom
# entrypoint: /usr/bin/env
# env_file:
# - .env
# working_dir: /ftworkdir
# command: uvicorn lft_rest.main:app --reload --host 0.0.0.0
## command: "which uvicorn"
# restart: unless-stopped
# volumes:
# - .:/ftworkdir
# ports:
# - "8000:8000"
# depends_on:
# - jupyter
networks:
net:
driver: bridge
volumes:
hd:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './redis_data'