-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
30 lines (26 loc) · 884 Bytes
/
compose.yml
File metadata and controls
30 lines (26 loc) · 884 Bytes
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
# compose probably has rather little real use here.
# Probably easier just to use "docker build"
# compose becomes more useful when the script becomes a persistent service rather than a single shot executable
services:
mirrorwobbleclassifier:
build: .
privileged: false
network_mode: host
# -u makes STDOUT unbuffered
entrypoint: python3 -u /app/app_ml_server.py
container_name: mirrorwobbleclassifier
hostname: mirrorwobbleclassifier
restart: unless-stopped
tty: false
volumes:
- type: bind
source: /mnt/Dockershare/mirrorwobbleclassifier
target: /mnt/external
read_only: false
ports:
- 8225:8225
env_file:
- mirrorwobbleclassifier.env
# docker compose build
# docker compose up -d
# docker compose down