Files
zima-apps/Apps/docker-ip-addr-manager/docker-compose.yaml
T

101 lines
2.6 KiB
YAML

name: docker-ip-addr-manager
x-image:
namespace: ${IMAGE_NAMESPACE:-joafri}
tag: ${IMAGE_TAG:-main}
services:
app:
image: ${IMAGE_NAMESPACE:-joafri}/docker-ip-addr-manager-app:${IMAGE_TAG:-main}
build:
context: ./backend
dockerfile: Dockerfile
container_name: docker-ip-addr-manager
restart: unless-stopped
network_mode: host
cap_add:
- NET_ADMIN
security_opt:
- no-new-privileges:true
environment:
TZ: ${TZ}
APP_PORT: ${APP_PORT:-31810}
STATE_FILE: ${STATE_FILE:-/data/entries.json}
DOCKER_API_URL: ${DOCKER_API_URL:-unix:///var/run/docker.sock}
DOCKER_TIMEOUT_SECONDS: ${DOCKER_TIMEOUT_SECONDS:-3}
volumes:
- type: bind
source: /DATA/AppData/$AppID/data
target: /data
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
read_only: true
x-casaos:
envs:
- container: APP_PORT
description:
en_us: HTTP port for the management UI
- container: DOCKER_API_URL
description:
en_us: Docker endpoint (unix socket default, optional tcp endpoint)
- container: DOCKER_TIMEOUT_SECONDS
description:
en_us: Timeout in seconds for Docker API requests
volumes:
- container: /data
description:
en_us: Persistent IP entry state
socket-proxy:
image: lscr.io/linuxserver/socket-proxy:version-24.02.26
container_name: docker-ip-addr-manager-socket-proxy
restart: unless-stopped
environment:
TZ: ${TZ}
CONTAINERS: 1
INFO: 1
PING: 1
POST: 0
VERSION: 1
read_only: true
tmpfs:
- /run
ports:
- target: 2375
published: "2375"
host_ip: 127.0.0.1
protocol: tcp
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
x-casaos:
architectures:
- amd64
- arm64
- arm
main: app
category: Network
author: Zima Apps Team
developer: Zima Apps Team
icon: https://www.svgrepo.com/show/49710/network.svg
tagline:
en_us: Manage host LAN IP aliases for container port bindings
description:
en_us: >-
Adds/removes host interface IP aliases and shows whether an IP is used by Docker
container port bindings. Includes fail-closed disable/delete checks when usage cannot
be validated.
title:
en_us: Docker IP Addr Manager
index: /
port_map: ${APP_PORT:-31810}
scheme: http