-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yaml
More file actions
61 lines (61 loc) · 1.26 KB
/
compose.yaml
File metadata and controls
61 lines (61 loc) · 1.26 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
services:
oe-python-template:
build:
context: .
target: all
env_file:
- path: .env
required: false
develop:
watch:
- path: src
action: rebuild
restart: no
profiles:
- manual
tty: true
stdin_open: true
oe-python-template-api:
build:
context: .
target: slim
env_file:
- path: .env
required: false
develop:
watch:
- path: src
action: rebuild
command: system serve --host=0.0.0.0 --port=8000 --no-watch
restart: always
ports:
- "8000:8000"
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:8000/healthz" ]
interval: 5s
timeout: 2s
retries: 3
start_period: 5s
start_interval: 1s
oe-python-template-notebook:
build:
context: .
target: all
env_file:
- path: .env
required: false
develop:
watch:
- path: src
action: rebuild
command: notebook --host=0.0.0.0 --port=8001
restart: always
ports:
- "8001:8001"
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:8001/healthz" ]
interval: 5s
timeout: 2s
retries: 3
start_period: 5s
start_interval: 1s