-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (85 loc) · 2.84 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
version: '3.8'
services:
lists-updater:
image: shizunge/blocky-lists-updater:latest
networks:
- blocky
# Need to reach internet to download lists.
- public
environment:
# Possible values are DEBUG INFO WARN ERROR and NONE. Case sensitive.
- "BLU_LOG_LEVEL=INFO"
# Add a location to the log messages.
- "BLU_NODE_NAME={{.Node.Hostname}}"
# Use an empty BLU_BLOCKY_URL to disable sending POST requests to the lists refresh API of blocky.
- "BLU_BLOCKY_URL=http://blocky_app.blocky_network:4000"
# This should be under the BLU_WEB_FOLDER to be read by blocky.
- "BLU_DESTINATION_FOLDER=/web/downloaded"
# Define the seconds to wait before the first download.
- "BLU_INITIAL_DELAY_SECONDS=120"
# Set BLU_INTERVAL_SECONDS to 0 to run the lists updater only once then exit.
- "BLU_INTERVAL_SECONDS=86400"
# Blocky won't read the sources files. It reads the downloaded files in the destination folder.
- "BLU_SOURCES_FOLDER=/sources"
# Use an empty BLU_WATCH_FOLDER to disable watching lists of domains.
# This should be under the BLU_WEB_FOLDER to be read by blocky.
- "BLU_WATCH_FOLDER=/web/watch"
# Use an empty BLU_WEB_FOLDER to disable the static-web-server.
- "BLU_WEB_FOLDER=/web"
# Port used by the static-web-server.
- "BLU_WEB_PORT=8080"
volumes:
- ./lists/sources/sources:ro
- ./lists/watch:/web/watch:ro
- bld-downloaded:/web/downloaded
blocky_app:
image: ghcr.io/0xerr0r/blocky
cap_add:
- NET_BIND_SERVICE
networks:
- blocky
- public
# If you are not using docker swam, you can use volumes to share the config file with the container.
configs:
- source: blocky-config
target: /app/config.yml
uid: '${PUID}'
gid: '${PGID}'
mode: 0400
# Use filebrowser (https://github.com/filebrowser/filebrowser) as the web UI to edit sources and watched lists.
filebrowser:
image: filebrowser/filebrowser
command:
- --address=0.0.0.0
- --config=/config/config.json
- --database=/config/database.db
- --root=/srv
- --username=example
- --password=example
networks:
- public
volumes:
- filebrowser:/srv
- filebrowser-config:/config
# These are shared volumes with blocky lists updater.
- ./lists/sources:/srv/blocky/sources
- ./lists/watch:/src/blocky/watch
# To exam errors in the aggregate lists.
- blk-downloaded:/src/blocky/downloaded:ro
configs:
blocky-config:
name: blocky-config
file: ./blocky-config.yml
volumes:
bld-downloaded:
filebrowser:
filebrowser-config:
networks:
public:
external: true
name: public_network
blocky:
internal: true
driver: overlay
attachable: false
name: blocky_network