Skip to content

Commit 0f5d72b

Browse files
committed
feat: Add PostgreSQL 16 service without SSL to Docker Compose configuration
1 parent 1a1b5ba commit 0f5d72b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,25 @@ services:
190190
- "./postgres/setup.sql:/docker-entrypoint-initdb.d/setup.sql"
191191
command: >
192192
-c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key
193+
194+
postgres_16_no_ssl:
195+
build:
196+
context: .
197+
dockerfile: postgres/Dockerfile
198+
args:
199+
VERSION: 16
200+
ports:
201+
- 5432
202+
environment:
203+
POSTGRES_DB: sqlx
204+
POSTGRES_USER: postgres
205+
POSTGRES_PASSWORD: password
206+
POSTGRES_HOST_AUTH_METHOD: scram-sha-256
207+
POSTGRES_INITDB_ARGS: --auth-host=scram-sha-256
208+
volumes:
209+
- "./postgres/setup.sql:/docker-entrypoint-initdb.d/setup.sql"
210+
command: >
211+
-c ssl=off
193212
#
194213
# Microsoft SQL Server (MSSQL)
195214
# https://hub.docker.com/_/microsoft-mssql-server

0 commit comments

Comments
 (0)