-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 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
49
version: '3.0'
services:
reflector:
build: reflector
restart: always
depends_on:
- postgres
- redis
environment:
REFLECTOR_DOMAIN: demo.my-devices.net
REFLECTOR_LICENSE: /home/reflector/etc/reflector.license
HTTP_PORT: 8000
POSTGRES_DATABASE: reflector
POSTGRES_USERNAME: reflector
POSTGRES_PASSWORD: reflector
POSTGRES_HOST: postgres
MIGRATE_SCHEMA: "true"
LOGCHANNEL: file
LOGPATH: /home/reflector/var/log/reflector.log
volumes:
- logvolume:/home/reflector/var/log
postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: reflector
POSTGRES_PASSWORD: reflector
POSTGRES_DB: reflector
volumes:
- datavolume:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
haproxy:
build: haproxy
depends_on:
- reflector
ports:
- "80:80"
- "443:443"
redis:
image: "redis:alpine"
restart: always
volumes:
logvolume:
datavolume: