Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 62a7f40

Browse files
committed
fixed, it should work now
1 parent e2934d8 commit 62a7f40

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

docker-compose.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
networks:
2-
# 显式新建一个名为 pdnode-network 的网络
32
pdnode-network:
43
driver: bridge
54

65
services:
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"

0 commit comments

Comments
 (0)