-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
42 lines (40 loc) · 1.06 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
42 lines (40 loc) · 1.06 KB
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
# SubNetree - Development Docker Compose
#
# Builds from local source instead of pulling from GHCR.
#
# Usage:
# docker compose -f docker-compose.dev.yml up --build
#
# This file is for contributors building SubNetree from source.
# Regular users should use docker-compose.yml instead.
services:
subnetree:
build:
context: .
dockerfile: Dockerfile
args:
VERSION: ${VERSION:-dev}
COMMIT: ${COMMIT:-unknown}
BUILD_TIME: ${BUILD_TIME:-unknown}
container_name: subnetree-dev
restart: unless-stopped
ports:
- "8080:8080"
- "9090:9090"
volumes:
- subnetree-dev-data:/data
environment:
- NV_DATABASE_DSN=/data/subnetree.db
- NV_LOG_LEVEL=debug
- NV_DEV_MODE=true
cap_add:
- NET_RAW
- NET_ADMIN
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
subnetree-dev-data: