Pin images, rotate logs, cap Jaeger and bind dev ports to loopback
- Pin seaweedfs (4.47), jaeger (1.76.0), certbot (v5.8.0) and pgadmin (9.18) instead of :latest. - Rotate container logs (json-file, 3 x 10 MB) in every stack. - Cap Jaeger's in-memory storage at 100k traces and add a healthcheck. - Publish dev ports on 127.0.0.1 (DEV_BIND_ADDRESS) so the dev credentials aren't reachable from the LAN. - Fix the prod command in compose.yml's header, the README's note on who writes the admin PAT, and the certbot command's line breaks.
This commit is contained in:
+11
-1
@@ -10,6 +10,14 @@
|
||||
|
||||
name: edge
|
||||
|
||||
# Docker's default json-file driver never rotates, so logs would grow until
|
||||
# the disk fills up.
|
||||
x-logging: &default-logging
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
networks:
|
||||
infra-net:
|
||||
name: infra-net
|
||||
@@ -36,10 +44,11 @@ services:
|
||||
- ./certbot/www:/var/www/certbot:ro
|
||||
- ./certbot/conf:/etc/letsencrypt:ro
|
||||
networks: [gitea, infra-net]
|
||||
logging: *default-logging
|
||||
restart: unless-stopped
|
||||
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
image: certbot/certbot:v5.8.0
|
||||
container_name: edge-certbot
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
@@ -48,4 +57,5 @@ services:
|
||||
volumes:
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/www:/var/www/certbot
|
||||
logging: *default-logging
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user