-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.j2
47 lines (46 loc) · 1.07 KB
/
docker-compose.yml.j2
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
version: "3"
services:
app:
image: homeinone
restart: always
privileged: true
user: root
depends_on:
- postgres
environment:
db: {{db_name}}
dbSchema: {{db_schema}}
dbUser: {{db_user}}
dbUserPassword: {{db_password}}
dbHost: postgres
dbPort: 5432
apiPort: {{api_port}}
apiAddress: http://{{ansible_default_ipv4.address}}:{{api_port}}/api/
telegramToken: {{telegram_token}}
piModule: {{pi_module}}
autoMigrate: true
TZ: {{process_timezone}}
devices:
- /dev/vcsm:/dev/vcsm
- /dev/vchiq:/dev/vchiq
- /dev/i2c-0:/dev/i2c-0
- /dev/i2c-1:/dev/i2c-1
ports:
- "{{api_port}}:{{api_port}}"
volumes:
- /sys:/sys
- /dev/mem:/dev/mem
postgres:
image: postgres:alpine
restart: always
ports:
- "35432:5432"
volumes:
- db:/var/lib/postgresql/data
environment:
POSTGRES_USER: {{db_user}}
POSTGRES_PASSWORD: {{db_password}}
POSTGRES_DB: {{db_name}}
POSTGRES_SCHEMA: {{db_schema}}
volumes:
db: