chore: 初始化项目与后端基础工程
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: s2f-postgres
|
||||
environment:
|
||||
POSTGRES_DB: s2f_db
|
||||
POSTGRES_USER: s2f_user
|
||||
POSTGRES_PASSWORD: s2f_password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U s2f_user -d s2f_db"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user