-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
39 lines (37 loc) · 867 Bytes
/
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
version: '3.8'
services:
boggart-server:
image: "registry.shosho.ru/boggart-server:latest"
build:
target: "server"
context: "./"
dockerfile: "./Dockerfile"
ports:
- "8881:8080"
- "1514:1514"
env_file: "./cmd/server/boggart.env"
container_name: "boggart_server"
configs:
- source: "boggart_server_config_yaml"
target: "/config.yaml"
volumes:
- "storage:/data/boggart_timelapse/villa/cam1/"
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
restart: always
network_mode: host
privileged: true
deploy:
placement:
constraints: [node.role == manager]
resources:
limits:
cpus: "0.70"
memory: 500M
replicas: 1
volumes:
storage:
driver: local
configs:
boggart_server_config_yaml:
file: "./cmd/server/config.yaml"