-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
166 lines (165 loc) · 4.7 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
version: "2.1"
volumes:
interface_db:
wifi_db:
syncthing:
fdroid:
mapeo:
crawls:
pywb-archive:
installers:
postgres_data:
mbtiles:
terrastories-bundler:
terrastories-media:
terrastories-import:
pataka:
services:
# https://github.com/digidem/starter-interface
balena-interface:
build: services/interface
restart: always
environment:
NETWORK_MODE: bridge
ports:
- "80:80"
- "8079:8079"
volumes:
- interface_db:/app/db # Stores UI database files
- crawls:/app/storage/websites
- mapeo:/app/storage/mapeo
- fdroid:/app/storage/fdroid
- installers:/app/storage/installers
- mbtiles:/app/storage//mbtiles
- terrastories-import:/app/storage/terrastories/import
- terrastories-media:/app/storage/terrastories/media
privileged: true # This can be removed if not using the USB mounting feature
labels:
io.balena.features.supervisor-api: 1
io.balena.features.balena-api: 1
# https://github.com/balena-labs-research/python-wifi-connect
wifi:
image: ghcr.io/balena-labs-research/python-wifi-connect:latest
environment:
PWC_HOST: bridge
DBUS_SYSTEM_BUS_ADDRESS: "unix:path=/host/run/dbus/system_bus_socket"
network_mode: "host"
restart: always
volumes:
- wifi_db:/app/db # Optional if not setting the hotspot ssid and password via the API
labels:
io.balena.features.dbus: "1"
cap_add:
- NET_ADMIN
privileged: true # This can be removed if you do not need the LED connectivity indicator.
# https://hub.docker.com/r/communityfirst/edt-offline-edt-portal
portal:
image: communityfirst/edt-offline-portal:latest
restart: always
ports:
- 8080:3000
# https://hub.docker.com/r/communityfirst/mapeo-bridge
mapeo-bridge:
image: communityfirst/mapeo-bridge
network_mode: host
volumes:
- terrastories-import:/usr/src/output
environment:
CSV_PATH: /usr/src/output
restart: unless-stopped
# https://hub.docker.com/r/filebrowser/filebrowser
filebrowser:
build: services/filebrowser
restart: unless-stopped
volumes:
- crawls:/srv/websites
- mapeo:/srv/mapeo
- fdroid:/srv/fdroid
- installers:/srv/installers
- mbtiles:/srv/mbtiles
- terrastories-import:/srv/terrastories/import
- terrastories-media:/srv/terrastories/media
ports:
- 8081:80
command: -- c
# https://hub.docker.com/r/linuxserver/syncthing/
syncthing:
build: services/syncthing
volumes:
- syncthing:/config
- crawls:/data/websites
- mapeo:/data/mapeo
- fdroid:/data/fdroid
- installers:/data/installers
- mbtiles:/data/mbtiles
ports:
- 8082:8384
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp
restart: unless-stopped
# https://hub.docker.com/_/postgres
terrastories-db:
image: postgres:11
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: terrastories
volumes:
- "postgres_data:/var/lib/postgresql/data"
restart: unless-stopped
# https://hub.docker.com/r/terrastories/terrastories
terrastories:
build: services/terrastories
ports:
- 8083:3000
depends_on:
- terrastories-db
environment:
DATABASE_URL: postgres://postgres:postgres@terrastories-db:5432/terrastories
CHOKIDAR_USEPOLLING: 'true'
SECRET_KEY_BASE: "a845b372237fe58988e8fb7698b9a7b61f8cc7581dc685387ff1cb8ec5f250d57b733379d53f5c3e7b816d0bf0fdf5f7b02558c64b932903e5ec3fbe10c4b205"
volumes:
- terrastories-bundler:/usr/local/bundle
- terrastories-media:/media
- terrastories-import:/api/import/media
restart: unless-stopped
# https://hub.docker.com/r/maptiler/tileserver-gl
tileserver:
build: services/tileserver
ports:
- 8085:8080
volumes:
- mbtiles:/data
restart: unless-stopped
# https://hub.docker.com/r/webrecorder/pywb
pywb:
build: services/pywb
ports:
- 8086:8080
volumes:
- pywb-archive:/webarchive
- crawls:/source
restart: unless-stopped
# https://hub.docker.com/_/httpd
httpd:
build: services/httpd
ports:
- 8087:80
volumes:
- installers:/usr/local/apache2/htdocs/installers
- fdroid:/usr/local/apache2/htdocs/repo
- mapeo:/usr/local/apache2/htdocs/mapeo
- mbtiles:/usr/local/apache2/htdocs/mbtiles
restart: unless-stopped
# https://hub.docker.com/r/communityfirst/pataka-cli
pataka:
image: communityfirst/pataka-cli:latest
network_mode: "host"
restart: unless-stopped
volumes:
- pataka:/root/.local/share/ahau-pataka
environment:
PATAKA_WEB_PORT: 8089