Skip to content

Commit

Permalink
linting docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Dec 22, 2023
1 parent c88d9c2 commit 30491ae
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: "3"
version: '3'

services:
db-is-ready:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:14-3.3-alpine
network_mode: host
command:
- "sh"
- "-c"
- "until pg_isready -h localhost -p ${PGPORT:-5411} -U postgres; do sleep 1; done"
restart: "no"
- 'sh'
- '-c'
- 'until pg_isready -h localhost -p ${PGPORT:-5411} -U postgres; do sleep 1; done'
restart: 'no'
environment:
- PGDATABASE=db
- PGUSER=postgres
Expand All @@ -22,7 +22,7 @@ services:
image: postgis/postgis:14-3.3-alpine
restart: unless-stopped
ports:
- "${PGPORT:-5411}:5432"
- '${PGPORT:-5411}:5432'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
Expand All @@ -40,16 +40,16 @@ services:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:15-3.3
command:
- "postgres"
- "-c"
- "ssl=on"
- "-c"
- "ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem"
- "-c"
- "ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key"
- 'postgres'
- '-c'
- 'ssl=on'
- '-c'
- 'ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem'
- '-c'
- 'ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key'
restart: unless-stopped
ports:
- "${PGPORT:-5411}:5432"
- '${PGPORT:-5411}:5432'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
Expand All @@ -68,16 +68,16 @@ services:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:15-3.3
command:
- "postgres"
- "-c"
- "ssl=on"
- "-c"
- "ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem"
- "-c"
- "ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key"
- 'postgres'
- '-c'
- 'ssl=on'
- '-c'
- 'ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem'
- '-c'
- 'ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key'
restart: unless-stopped
ports:
- "${PGPORT:-5411}:5432"
- '${PGPORT:-5411}:5432'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
Expand All @@ -97,7 +97,7 @@ services:
image: postgis/postgis:11-3.0-alpine
restart: unless-stopped
ports:
- "${PGPORT:-5411}:5432"
- '${PGPORT:-5411}:5432'
environment:
- POSTGRES_DB=db
- POSTGRES_USER=postgres
Expand Down

0 comments on commit 30491ae

Please sign in to comment.