This repository was archived by the owner on Feb 11, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11networks :
2- # 显式新建一个名为 pdnode-network 的网络
32 pdnode-network :
43 driver : bridge
54
65services :
7- # --- PostgreSQL 数据库 ---
86 db :
97 image : postgres:16-alpine
108 container_name : pdnode-db
119 restart : always
1210 networks :
1311 - pdnode-network
14- env_file :
15- - .env
16- ports :
17- - " 5432:5432" # You can choose not to expose the port if you don't want to.
12+ environment :
13+
14+ POSTGRES_USER : ${DB_USER}
15+ POSTGRES_PASSWORD : ${DB_PASSWORD}
16+ POSTGRES_DB : ${DB_DATABASE}
1817 volumes :
1918 - ./docker-data/postgres:/var/lib/postgresql/data
2019 healthcheck :
@@ -29,8 +28,6 @@ services:
2928 - .env
3029 networks :
3130 - pdnode-network
32- ports :
33- - " 6379:6379" # You can choose not to expose the port if you don't want to.
3431 volumes :
3532 - ./docker-data/redis:/data
3633
@@ -52,8 +49,8 @@ services:
5249 REDIS_HOST : redis
5350 NODE_ENV : production
5451 ports :
55- # if you want, you can change the number
56- # Host:Container
52+ # if you want, you can change the number
53+ # Host:Container
5754 - 3333:${PORT}
5855 command : >
5956 sh -c "node ace migration:run --force && node bin/server.js"
You can’t perform that action at this time.
0 commit comments