-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (42 loc) · 1.01 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
version: "3.7"
services:
driver:
build: ./ceiled-driver
image: ceiled-driver:latest
restart: unless-stopped
devices:
- "/dev/i2c-5:/dev/i2c-5"
environment:
ARGS: --pca9685 /dev/i2c-5 --socketFile /app/socket/ceiled.sock
volumes:
- ceiled-driver:/app/socket
server:
build: ./ceiled-server
image: ceiled-server:latest
restart: unless-stopped
depends_on:
- driver
ports:
- ${PORT}:${PORT}
environment:
PORT: ${PORT}
CEILED_SOCKET: ceiled-driver/ceiled.sock
INSECURE: ${INSECURE}
KEY_FILE: https/localhost.key.pem
CERT_FILE: https/localhost.cert.pem
DB_HOST: ${DB_HOST}
DB_AUTH: ${DB_AUTH}
DB_NAME: ${DB_NAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
volumes:
- ceiled-driver:/app/ceiled-driver
- ./${HTTPS_FILES}:/app/https
volumes:
ceiled-driver:
networks:
default:
ipam:
driver: default
config:
- subnet: 172.19.0.0/16