chore: init docker compose for caddy, postgres, watchtower

This commit is contained in:
2026-05-12 03:36:38 +08:00
commit 621f6a870f
5 changed files with 61 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
+23
View File
@@ -0,0 +1,23 @@
services:
postgres:
image: postgres:18
restart: unless-stopped
ports:
- 5432:5432
volumes:
- ./volumes/data:/var/lib/postgresql
environment:
TZ: Asia/Shanghai
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
healthcheck:
test:
- CMD-SHELL
- pg_isready -U postgres
interval: 1s
timeout: 5s
retries: 10
networks:
default:
name: db