init code

This commit is contained in:
fish
2025-10-03 16:39:24 +08:00
parent d3008ab9f5
commit 1e9cdda192
61 changed files with 3196 additions and 0 deletions

17
docker-compose.db.yaml Normal file
View File

@@ -0,0 +1,17 @@
services:
postgres:
image: postgres:17.4-alpine
container_name: user_db
restart: always
entrypoint: ["/scripts/db-lanuch-entrypoint.sh"]
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
TZ: ${TZ}
volumes:
- ./shared_data/user_db:/var/lib/postgresql/data
- ./sql:/docker-entrypoint-initdb.d
- ./scripts:/scripts
networks:
- user-network