-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 864 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 864 Bytes
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
version: '3.6'
services:
db:
container_name: home_presence_db
build: ./postgres
restart: always
ports:
- 5432:5432
network_mode: host
environment:
- POSTGRES_PASSWORD=postgres
app:
container_name: home_presence_back
build: ./app
depends_on:
- db
stdin_open: true
tty: true
restart: always
environment:
- PASSWORD=toor
- NETWORK_MASK=192.168.1.0/24
- MAX_MISS_COUNTER=5
- WORKER_MAC_SLEEP_TIME_S=150
- WORKER_DB_SLEEP_TIME_S=600
- WORKER_CLEANUP_SLEEP_TIME_S=86400
- WORKER_CLEANUP_TIME_D=90
- TIMEZONE=Europe/Belgrade
- SECRET_KEY=Random_secret_key123
ports:
- 8080:8080
network_mode: host
nginx:
container_name: home_presence_nginx
build: ./nginx
restart: always
ports:
- 8001:8001
network_mode: host