[deploy] Anywhere: the Docker image and compose file (edge and control), the Linux installer and systemd units, the Windows Server installer (Caddy mode, three services), the preview client for Fabrica, and the Windows smoke script
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
#
|
||||
# Ianitor Domi on Docker (T4). Set the variables in .env next to this file (see
|
||||
# deploy/linux/setup.sh for all of them), then:
|
||||
#
|
||||
# docker compose up -d && docker compose exec control ianitor-entrypoint setup-link
|
||||
#
|
||||
# and open the link it prints. Edge serves 80/443; control runs in edge's network namespace,
|
||||
# so its API stays on 127.0.0.1 and only edge (the admin host) reaches it.
|
||||
|
||||
name: ianitor
|
||||
|
||||
x-common: &common
|
||||
image: ${IANITOR_IMAGE:-ianitor:latest}
|
||||
restart: unless-stopped
|
||||
environment: &env
|
||||
IANITOR_LOG: info
|
||||
CREDENTIALS_DIRECTORY: /var/lib/ianitor/credentials
|
||||
IANITOR_ADMIN_HOST: ${IANITOR_ADMIN_HOST:?set IANITOR_ADMIN_HOST in .env (the web UI's address)}
|
||||
IANITOR_TLS: ${IANITOR_TLS:-letsencrypt}
|
||||
IANITOR_DOMI_ROOT: ${IANITOR_DOMI_ROOT:-}
|
||||
IANITOR_PREVIEW_DOMAIN: ${IANITOR_PREVIEW_DOMAIN:-}
|
||||
IANITOR_PREVIEW_UPSTREAMS: ${IANITOR_PREVIEW_UPSTREAMS:-}
|
||||
IANITOR_PREVIEW_TLS: ${IANITOR_PREVIEW_TLS:-}
|
||||
IANITOR_ROUTES_REMOTE: ${IANITOR_ROUTES_REMOTE:-}
|
||||
IANITOR_ROUTES_HOST: ${IANITOR_ROUTES_HOST:-gitea}
|
||||
volumes:
|
||||
- state:/var/lib/ianitor
|
||||
- run:/run/ianitor
|
||||
read_only: true
|
||||
tmpfs: [/tmp]
|
||||
cap_drop: [ALL]
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
|
||||
services:
|
||||
edge:
|
||||
<<: *common
|
||||
command: ["edge"]
|
||||
ports:
|
||||
- "${IANITOR_HTTP_PORT:-80}:80"
|
||||
- "${IANITOR_HTTPS_PORT:-443}:443"
|
||||
# Unprivileged port binding inside the container (Docker's default since 20.10, set here
|
||||
# so a daemon with another default works too).
|
||||
sysctls:
|
||||
net.ipv4.ip_unprivileged_port_start: "0"
|
||||
|
||||
control:
|
||||
<<: *common
|
||||
command: ["control"]
|
||||
network_mode: "service:edge"
|
||||
depends_on: [edge]
|
||||
|
||||
volumes:
|
||||
state:
|
||||
run:
|
||||
Reference in New Issue
Block a user