Skip to content

Commit

Permalink
Use the same version accross all services
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 29, 2024
1 parent 710d91c commit 989e072
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# docker compose -f docker-compose.yml up -d
services:
postgres:
image: docker.io/postgres:${POSTGRES_VERSION:-latest}
image: postgres:${POSTGRES_VERSION:-latest}
command: postgres -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key -c ssl_ca_file=/var/lib/postgresql/ca.crt -c hba_file=/var/lib/postgresql/pg_hba.conf
environment:
POSTGRES_USER: postgres
Expand All @@ -19,7 +19,7 @@ services:
ports:
- "5432:5432"
postgres_no_ssl: # Borrowed from https://github.com/MeltanoLabs/tap-postgres/blob/main/.github/workflows/test.yml#L13-L23
image: docker.io/postgres:latest
image: postgres:${POSTGRES_VERSION:-latest}
environment:
POSTGRES_PASSWORD: postgres
ports:
Expand All @@ -42,7 +42,7 @@ services:
networks:
- inner
postgresdb:
image: postgres:13.0
image: postgres:${POSTGRES_VERSION:-latest}
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down

0 comments on commit 989e072

Please sign in to comment.