-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (65 loc) · 2.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (65 loc) · 2.23 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
65
66
67
68
# =============================================================================
# Copyright (C) 2026-present Alces Software Ltd.
#
# This file is part of Custodian.
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which is available at
# <https://www.eclipse.org/legal/epl-2.0>, or alternative license
# terms made available by Alces Software Ltd - please direct inquiries
# about licensing to licensing@alces-flight.com.
#
# Custodian is distributed in the hope that it will be useful, but
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
# IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS
# OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A
# PARTICULAR PURPOSE. See the Eclipse Public License 2.0 for more
# details.
#
# You should have received a copy of the Eclipse Public License 2.0
# along with Custodian. If not, see:
#
# https://opensource.org/licenses/EPL-2.0
#
# For more information on Custodian, please visit:
# https://github.com/alces-software/custodian
# ==============================================================================
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: custodian
POSTGRES_PASSWORD: custodian
POSTGRES_DB: custodian
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U custodian -d custodian"]
interval: 3s
timeout: 3s
retries: 10
volumes:
- pgdata:/var/lib/postgresql/data
app:
build: .
ports:
- "8080:8080"
environment:
PORT: "8080"
DATABASE_URL: postgres://custodian:custodian@db:5432/custodian?sslmode=disable
ADMIN_API_KEYS: dev-admin-key-change-me
REGISTRAR_API_KEYS: dev-registrar-key-change-me
ALLOWED_DOMAINS: "*.example.com,example.com"
CLOUDDNS_ZONE: example-com
LE_EMAIL: ops@example.com
LE_DIRECTORY: staging
# 32 zero bytes base64 — local dev only
DATA_ENCRYPTION_KEY: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
RENEW_BEFORE_DAYS: "30"
LOG_LEVEL: debug
# GCE_PROJECT / GCP_SERVICE_ACCOUNT_JSON for real issuance
depends_on:
db:
condition: service_healthy
volumes:
pgdata: