-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.71 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: haven-kit
services:
# Haven Nostr Relay
haven_relay:
build:
context: ./haven-relay
dockerfile: Dockerfile
args:
# Taken from the environment / root .env when set; otherwise the
# Dockerfile's pinned default applies.
- HAVEN_VERSION
container_name: haven_relay_1
restart: unless-stopped
ports:
- "3355:3355"
volumes:
- ${APP_DATA_DIR}/config:/haven-config:z
- ${APP_DATA_DIR}/blossom:/haven/blossom:z
- ${APP_DATA_DIR}/db:/haven/db:z
environment:
- TZ=UTC
# Map syntax (not a list) so overlays like docker-compose.tor.yml can
# merge additional networks under podman-compose
networks:
haven_network: {}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3355"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Configuration UI
config_ui:
build:
context: .
dockerfile: ./config-ui/Dockerfile
container_name: haven_config_ui_1
restart: unless-stopped
ports:
- "${APP_HAVEN_CONFIG_UI_PORT:-8080}:8080"
volumes:
- ${APP_DATA_DIR}/config:/haven-config:z
- ${DOCKER_SOCK:-/var/run/docker.sock}:/var/run/docker.sock
- ${PWD}/docker-compose.yml:/docker-compose.yml:ro
working_dir: /
environment:
- DOCKER_SOCK=${DOCKER_SOCK:-/var/run/docker.sock}
- CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-}
- DATA_DIR=${PWD}/data
- APP_DATA_DIR=${APP_DATA_DIR}
- RELAY_CONTAINER_NAME=haven_relay_1
user: "${UID:-0}:${GID:-0}"
security_opt:
- label=disable
depends_on:
- haven_relay
networks:
haven_network: {}
networks:
haven_network:
driver: bridge