forked from qvarforth/trackdirect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (87 loc) · 2.2 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
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
version: "3.9"
services:
aprsc:
restart: always
build:
context: .
dockerfile: aprsc.dockerfile
ports:
- "10152:10152"
- "14580:14580"
- "10155:10155"
- "14501:14501"
volumes:
- $PWD/config/aprsc.conf:/opt/aprsc/etc/aprsc.conf
networks:
- caddy
collector:
restart: always
build:
context: .
dockerfile: trackdirect-python.dockerfile
volumes:
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
command: /root/trackdirect/server/scripts/collector.sh trackdirect.ini 0
depends_on:
- "db"
- "aprsc"
networks:
- caddy
websocket:
restart: always
build:
context: .
dockerfile: trackdirect-python.dockerfile
volumes:
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
command: /root/trackdirect/server/scripts/wsserver.sh trackdirect.ini
ports:
- "9000:9000"
depends_on:
- "db"
- "aprsc"
networks:
- caddy
labels:
caddy: waprs.dead.guru
caddy.reverse_proxy: "{{upstreams 9000}}"
caddy.tls: "assada.ua@gmail.com"
web:
restart: always
build:
context: .
dockerfile: trackdirect-apache.dockerfile
volumes:
- $PWD/htdocs/public/index.php:/root/trackdirect/htdocs/public/index.php
- $PWD/htdocs/public/views:/root/trackdirect/htdocs/public/views
- $PWD/htdocs/public/js:/root/trackdirect/htdocs/public/js
- $PWD/htdocs/public/css:/root/trackdirect/htdocs/public/css
- $PWD/config/trackdirect.ini:/root/trackdirect/config/trackdirect.ini
- $PWD/heatmaps:/root/trackdirect/htdocs/public/heatmaps
# ports:
# - "80:80"
depends_on:
- "db"
networks:
- caddy
labels:
caddy: aprs.dead.guru
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.tls: "assada.ua@gmail.com"
db:
restart: always
build:
context: .
dockerfile: db.dockerfile
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: foobar
POSTGRES_DB: trackdirect
volumes:
- $PWD/db:/var/lib/postgresql/data
networks:
- caddy
networks:
caddy:
name: dead-services
external: true