-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.88 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
services:
dockpull:
build:
context: .
dockerfile: server/Dockerfile
container_name: dockpull
restart: unless-stopped
ports:
- "5000:5000"
environment:
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- SESSION_SECRET=${SESSION_SECRET}
- STACKS_DIR=${STACKS_DIR}
# Timezone for the daily scan's clock. The container is UTC by default,
# so a "09:00" scan would otherwise run at 09:00 UTC. Set TZ in your .env,
# e.g. TZ=Europe/London.
- TZ=${TZ:-UTC}
volumes:
# Required so dockerode/the docker CLI inside the container can talk
# to the host's Docker daemon.
- /var/run/docker.sock:/var/run/docker.sock
# IMPORTANT: same-path mount.
# The host directory containing your compose stacks MUST be mounted at
# the IDENTICAL path inside this container as it has on the host.
# `docker compose` (run from inside this container, talking to the
# host daemon over the socket) resolves relative bind mounts and
# build contexts in your stacks' compose files against the path the
# *host daemon* sees on disk — which is the host path, not this
# container's path. If the paths differ, relative volume/bind mounts
# in your other stacks will silently break.
# Example: if your stacks live at /opt/stacks on the host, set
# STACKS_DIR=/opt/stacks in your .env and keep this mapping as-is.
- ${STACKS_DIR}:${STACKS_DIR}
# Persistent SQLite database (events, update history, pinned refs).
- dockpull-data:/data
volumes:
dockpull-data:
# ---------------------------------------------------------------------------
# No external notifier needed. This app checks your images' registries for
# updates on its own (when you open it, and on a background schedule). Diun is
# not required.
# ---------------------------------------------------------------------------