-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
46 lines (44 loc) · 1.33 KB
/
docker-compose.yml.example
File metadata and controls
46 lines (44 loc) · 1.33 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
version: "3.8"
# Docker Compose configuration for Postgresus
# ============================================
#
# Features:
# - HTTPS enabled by default with self-signed certificate
# - HTTP requests on port 4005 automatically redirect to HTTPS
# - Certificate is auto-generated on first run
#
# Usage:
# 1. Copy this file to docker-compose.yml
# 2. Run: docker compose up -d
# 3. Access: https://localhost (accept the self-signed certificate)
#
# For production with custom certificate:
# Mount your certificates to /postgresus-data/certs/
# - server.crt (certificate)
# - server.key (private key)
services:
postgresus:
image: putopelatudo/postgresus:latest
# Or build from source:
# build:
# context: .
# dockerfile: Dockerfile
container_name: postgresus
ports:
- "443:443" # HTTPS
- "4005:4005" # HTTP (redirects to HTTPS)
volumes:
- ./postgresus-data:/postgresus-data
environment:
# HTTPS is enabled by default in production
- ENABLE_HTTPS=true
# Uncomment to change ports (default: 443 for HTTPS, 4005 for HTTP)
# - HTTPS_PORT=443
# - HTTP_PORT=4005
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-kf", "https://localhost/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s