-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 963 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 963 Bytes
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
services:
postgresus:
image: putopelatudo/postgresus:latest
container_name: postgresus
restart: unless-stopped
ports:
- "443:443" # HTTPS (основной)
- "4005:4005" # HTTP (перенаправляет на HTTPS)
volumes:
- postgresus-data:/postgresus-data
environment:
# HTTPS включён по умолчанию (самоподписанный сертификат)
- ENABLE_HTTPS=true
# Можно указать свои сертификаты:
# - TLS_CERT_PATH=/postgresus-data/certs/server.crt
# - TLS_KEY_PATH=/postgresus-data/certs/server.key
healthcheck:
test: [ "CMD", "curl", "-kf", "https://localhost/api/v1/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 512M
volumes:
postgresus-data:
driver: local