-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (49 loc) · 1.35 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
# File docker-compose-ble-scanner.yml
version: "3.9"
### Services ###
services:
lstm:
# image: "arolgroup/ble-scanner:20230525"
image: "pit836/lstm:latest"
#
# Specify a custom container name, rather than a generated default name.
container_name: lstm
#
# # Run an init process (PID 1) inside the container that forwards signals and reaps processes.
# init: true
# Restart a container irrespective of the exit code but will stop restarting when the service is stopped or removed
restart: unless-stopped
# # Prevent the application processes inside the container from gaining new privileges during runtime
# security_opt:
# - "no-new-privileges:true"
privileged: true
cap_add:
- SYS_ADMIN
- NET_ADMIN
#
environment:
- HOST=0.0.0.0
- PORT=8080
network_mode: "host"
# ports:
# # Make HTTPS port (9443) reachable from localhost
# - "9443:9443"
expose:
# Expose TCP port (7070) to make it accessible for other containers in the same network
- "8080"
volumes:
- dbfiles:/usr/src/app/dist/dbFiles
# Limite CPU al 20%
deploy:
resources:
limits:
cpus: "0.2" # Limita l'uso della CPU al 20%
### NETWORKS ###
# networks:
# hostnet:
# external: true
# name: host
### Volumes ###
volumes:
dbfiles:
# EOF