Skip to content

Commit 1a5100c

Browse files
committed
chore: 🎨 Improve postgres compose.
1 parent be1e36a commit 1a5100c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/infra/docker/postgres-compose-pre.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ services:
66
container_name: postgres
77
restart: always
88
environment:
9-
POSTGRES_USER: yourusername # Replace with your desired username
10-
POSTGRES_PASSWORD: yourpassword # Replace with your desired password
11-
POSTGRES_DB: yourdatabase # Replace with your desired database name
9+
POSTGRES_USER: ${POSTGRES_USER}
10+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
11+
POSTGRES_DB: ${POSTGRES_DB}
1212
ports:
13-
- "5432:5432" # Maps port 5432 on the host to port 5432 in the container
13+
- "5432:5432"
1414
volumes:
15-
- postgres_data:/var/lib/postgresql/data # Persistent data storage
15+
- postgres_data:/var/lib/postgresql/data
1616

1717
volumes:
1818
postgres_data:

0 commit comments

Comments
 (0)