-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (31 loc) · 1021 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (31 loc) · 1021 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
services:
attackmap:
build: .
image: opnsense-attackmap:latest
container_name: opnsense-attackmap
# Credentials and tuning live in .env next to this file - never in the image.
env_file:
- .env
environment:
- PORT=8474
- HOST=0.0.0.0
ports:
- "8474:8474"
# Holds the GeoLite2 databases (~74 MB, downloaded on first run) and
# rollup.json, the statistics history. Must be WRITABLE - do not add :ro.
# A named volume is used because Docker seeds it with the image's ownership,
# avoiding the root-owned bind-mount permission trap.
#
# Removing the volume costs you the GeoIP databases (re-downloadable) and
# the ranking history (not - the 24h panel would refill only as far back as
# BACKFILL_ROWS reaches, then rebuild over the following day).
volumes:
- geodata:/app/data
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
geodata: