Skip to content

Commit 034a780

Browse files
committed
fix(ci): add default environment variables to docker-compose for CI
The docs validation was failing in CI with connection refused errors because PostgreSQL was not configured to listen on port 7432 inside the container. Added default values for all PostgreSQL environment variables in docker-compose.yml: - PGPORT defaults to 7432 (ensures PostgreSQL listens on the expected port) - PGUSER, POSTGRES_DB, POSTGRES_USER default to 'cipherstash' - POSTGRES_PASSWORD defaults to 'password' This ensures the container works correctly even when mise environment variables are not properly exported to the docker compose subprocess in CI.
1 parent b5f0fac commit 034a780

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ services:
66
ports:
77
- 7432:7432
88
environment:
9-
- PGPORT=${POSTGRES_PORT}
10-
- PGUSER=${POSTGRES_USER}
11-
- POSTGRES_DB=${POSTGRES_DB}
12-
- POSTGRES_USER=${POSTGRES_USER}
13-
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
9+
- PGPORT=${POSTGRES_PORT:-7432}
10+
- PGUSER=${POSTGRES_USER:-cipherstash}
11+
- POSTGRES_DB=${POSTGRES_DB:-cipherstash}
12+
- POSTGRES_USER=${POSTGRES_USER:-cipherstash}
13+
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
1414
networks:
1515
- postgres
1616
deploy:

0 commit comments

Comments
 (0)