-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dist.yml
103 lines (102 loc) · 2.51 KB
/
docker-compose-dist.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
services:
mysql:
image: linuxserver/mariadb:latest
restart: unless-stopped
expose:
- "3306"
ports:
- "3316:3306"
environment:
- TZ=Europe/Paris
- FILE__MYSQL_ROOT_PASSWORD=/run/secrets/DB_ROOTPASSWORD
#- MYSQL_ROOT_PASSWORD=changeIt # deprecated
- MYSQL_DATABASE=jeedom
- MYSQL_USER=jeedom
#- MYSQL_PASSWORD=changeIt # deprecated
- FILE__MYSQL_PASSWORD=/run/secrets/DB_PASSWORD
secrets:
- DB_ROOTPASSWORD
- DB_PASSWORD
volumes:
- ./sqldata:/config
- run_mysql:/run
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
web:
image: edgd1er/jeedom-rpi:v4-latest
restart: unless-stopped
expose:
- "22"
- "80"
- "443"
ports:
- "9180:80"
- "9443:443"
healthcheck:
test: curl -s --fail http://localhost/here.html || exit 1
interval: 1m30s
retries: 3
start_period: 40s
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
# only needed if you want to set your own certificate.
#- ./cert.pem:/etc/ssl/certs/ssl-cert-snakeoil.pem:ro
#- ./privkey.pem:/etc/ssl/private/ssl-cert-snakeoil.key:ro
- ./log:/var/log:rw
- tmpfs_tmp:/tmp/
- tmpfs_cache:/var/cache/
- tmpfs_root_cache:/root/.cache
environment:
- TZ=Europe/Paris
- JEEDOM_ENC_KEY= #<get key from /var/www/html/data/jeedom_encryption.key to keep database secrets consistent>
- ROOT_PASSWD= # deprecated, replaced by secrets
- DB_ROOTPASSWORD= # deprecated, replaced by secrets
- DB_HOST=mysql
- DB_PORT=3306
- DB_NAME=jeedom
- DB_USERNAME=jeedom
- DB_PASSWORD= # deprecated, replaced by secrets
- LOGS_TO_STDOUT=y
secrets:
- JEEDOM_ENCRYPTION_KEY
- DB_ROOTPASSWORD
- DB_PASSWORD
- ROOT_PASSWD
#devices:
# - "/dev/ttyUSB0:/dev/ttyUSB0"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
depends_on:
- mysql
secrets:
JEEDOM_ENCRYPTION_KEY:
file: ./JEEDOM_ENCRYPTION_KEY
DB_ROOTPASSWORD:
file: ./DB_ROOTPASSWORD
DB_PASSWORD:
file: ./DB_PASSWORD
ROOT_PASSWD:
file: ./ROOT_PASSWORD
volumes:
tmpfs_root_cache:
driver_opts:
type: tmpfs
device: tmpfs
tmpfs_cache:
driver_opts:
type: tmpfs
device: tmpfs
tmpfs_tmp:
driver_opts:
type: tmpfs
device: tmpfs
run_mysql:
driver_opts:
type: tmpfs
device: tmpfs