Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
63 lines (60 loc) · 2.92 KB
/
Copy pathcompose.yml
File metadata and controls
63 lines (60 loc) · 2.92 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
# Compose deployment for openvox-ca using the published container images.
#
# Quick start:
# docker compose up -d (or: podman-compose up -d)
#
# CA state lives in the named volume `ca-ssl`, so it survives container
# restarts and image upgrades. On first run a new CA is bootstrapped under
# /etc/puppetlabs/puppet/ssl/ca, and it issues its own serving certificate,
# for the names `puppet` and `localhost`, beside it on the same volume: the
# configuration baked into the image asks for that. An agent left at its
# default server name, `puppet`, verifies it as it stands, and the CA's
# signing key stays out of the network-facing process.
#
# To serve another name, or to configure anything else, mount your own file
# over /etc/openvox-ca/config.yaml (the commented line under `volumes:`). It
# replaces the baked one entirely. See "Running" in docs/container-images.md.
#
# See docs/container-images.md for the available image tags, and
# docs/configuration.md for the full configuration reference (mTLS,
# storage backends, autosigning, ...).
#
# The compose topologies used by the integration test suites live under
# test/ (test/compose*.yml); they are not deployment examples.
name: openvox-ca
services:
openvox-ca:
# `:edge` until 1.0.0, the first release `:latest` will name: pre-releases
# never move `:latest`, so it does not exist yet. Either is a floating
# tag, deliberately left unpinned so this example tracks the newest
# build, but a floating tag carries no supply-chain integrity guarantee:
# two pulls at different times can yield different images, and `:edge`
# is unreleased code from main. Pin a release tag (e.g. :1.2.3) or a
# digest for production deployments. This is the distroless image; an `-alpine` variant of
# every tag, with a shell, is also published. Both run as uid 65532, so
# data written by a container that ran as another uid has to be re-owned
# to 65532:65532 first (docs/container-images.md, "Runtime user").
image: ghcr.io/voxpupuli/openvox-ca:edge
# No `command:`: the image's own runs the CA from the volume below. A
# command here replaces it, so restate --cadir if you add one.
# NOTE: autosign is off by default. Only enable it in dev/test
# environments: it lets any CSR submitter obtain a signed certificate
# without operator review.
ports:
- "8140:8140"
volumes:
- ca-ssl:/etc/puppetlabs/puppet/ssl
# - ./config.yaml:/etc/openvox-ca/config.yaml:ro
restart: unless-stopped
# The image's own HEALTHCHECK, restated: Docker reads it from the image,
# but Podman does not read it from the OCI-format images published here,
# so without this podman-compose would report no health at all. See
# "Health check" in docs/container-images.md.
healthcheck:
test: ["CMD", "/usr/local/bin/openvox-ca", "healthcheck"]
interval: 30s
timeout: 5s
start_period: 120s
retries: 3
volumes:
ca-ssl: