-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (48 loc) · 1.94 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
services:
smarthome:
image: mikmuellerdev/smarthome:0.12.0-alpha
container_name: smarthome
hostname: smarthome
depends_on:
- smarthome-mariadb
# Depending on your setup, this may be required to write to the mounted `data` volume
# user: "1000"
environment:
# Timezone is required for accurate scheduling
- TZ=Europe/Berlin
# Smarthome database configuration
- SMARTHOME_DB_DATABASE=smarthome
- SMARTHOME_DB_HOSTNAME=smarthome-db
- SMARTHOME_DB_PORT=3306
- SMARTHOME_DB_USER=smarthome
- SMARTHOME_DB_PASSWORD=password
# Smarthome sever configuration
- SMARTHOME_PORT=80 # Default is 8082, is ONLY internal
- SMARTHOME_LOG_LEVEL=TRACE # Default is INFO
- SMARTHOME_ENV_PRODUCTION=TRUE # Default is TRUE
- SMARTHOME_SESSION_KEY=random_key_here # Default uses a random key generated by Smarthome
- SMARTHOME_ADMIN_PASSWORD=password # Only set on first start
ports:
- 8123:80 # Right side must be equal to `SMARTHOME_PORT`
sysctls:
# For more information on why this is required, read through this README: `https://github.com/go-ping/ping`
- net.ipv4.ping_group_range=0 2147483647 # This is required in order to use the Homescript `ping` function
restart: unless-stopped
# volumes:
# - path/to/data:/app/data
smarthome-mariadb:
image: mariadb
container_name: smarthome-db
hostname: smarthome-db
environment:
# Timezone is required for created-at dates and logging
- TZ=Europe/Berlin
# Config for access from Smarthome
- MARIADB_DATABASE=smarthome
- MARIADB_USER=smarthome
- MARIADB_PASSWORD=password
# Root password for maintenance only
- MARIADB_ROOT_PASSWORD=password
restart: unless-stopped
# volumes:
# - /path/to/db:/var/lib/mysql