File tree Expand file tree Collapse file tree
integration/load_balancer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,10 +20,18 @@ RUN source ~/.cargo/env && \
2020
2121FROM ubuntu:latest
2222ENV RUST_LOG=info
23+ ENV PSQL_VERSION=18
2324RUN apt update && \
24- apt install -y ca-certificates postgresql-client ssl-cert && \
25+ apt install -y curl ca-certificates ssl-cert && \
2526 update-ca-certificates
2627
28+ RUN install -d /usr/share/postgresql-common/pgdg && \
29+ curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc && \
30+ . /etc/os-release && \
31+ sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
32+
33+ RUN apt update && apt install -y postgresql-client-${PSQL_VERSION}
34+
2735COPY --from=builder /build/target/release/pgdog /usr/local/bin/pgdog
2836
2937WORKDIR /pgdog
Original file line number Diff line number Diff line change @@ -11,23 +11,23 @@ services:
1111 environment :
1212 RUST_LOG : debug
1313 shard_0 :
14- image : postgres:17
14+ image : postgres:18
1515 environment :
1616 POSTGRES_PASSWORD : postgres
1717 volumes :
1818 - ./docker/setup.sql:/docker-entrypoint-initdb.d/setup.sql
1919 networks :
2020 - postgres
2121 shard_1 :
22- image : postgres:17
22+ image : postgres:18
2323 environment :
2424 POSTGRES_PASSWORD : postgres
2525 networks :
2626 - postgres
2727 volumes :
2828 - ./docker/setup.sql:/docker-entrypoint-initdb.d/setup.sql
2929 shard_2 :
30- image : postgres:17
30+ image : postgres:18
3131 environment :
3232 POSTGRES_PASSWORD : postgres
3333 networks :
Original file line number Diff line number Diff line change 11services :
22 db_0 :
3- image : postgres:16
3+ image : postgres:18
44 environment :
55 POSTGRES_PASSWORD : postgres
66 ports :
77 - 6000:5432
88 volumes :
99 - shard_0:/var/lib/postgresql/data
1010 db_1 :
11- image : postgres:16
11+ image : postgres:18
1212 environment :
1313 POSTGRES_PASSWORD : postgres
1414 ports :
1515 - 6001:5432
1616 volumes :
1717 - shard_1:/var/lib/postgresql/data
1818 db_2 :
19- image : postgres:16
19+ image : postgres:18
2020 environment :
2121 POSTGRES_PASSWORD : postgres
2222 ports :
Original file line number Diff line number Diff line change 11services :
22 shard_0 :
3- image : postgres:17
3+ image : postgres:18
44 environment :
55 POSTGRES_PASSWORD : postgres
66 ports :
77 - 6000:5432
88 volumes :
99 - shard_0:/var/lib/postgresql/data
1010 shard_1 :
11- image : postgres:17
11+ image : postgres:18
1212 environment :
1313 POSTGRES_PASSWORD : postgres
1414 ports :
1515 - 6001:5432
1616 volumes :
1717 - shard_1:/var/lib/postgresql/data
1818 shard_2 :
19- image : postgres:17
19+ image : postgres:18
2020 environment :
2121 POSTGRES_PASSWORD : postgres
2222 ports :
Original file line number Diff line number Diff line change 11services :
22 postgres :
3- image : postgres:17
3+ image : postgres:18
44 environment :
55 POSTGRES_PASSWORD : postgres
66 pgbouncer :
Original file line number Diff line number Diff line change 11services :
22 primary :
3- image : postgres:17
3+ image : postgres:18
44 environment :
55 POSTGRES_PASSWORD : postgres
66 volumes :
77 - ./docker/primary.sh:/docker-entrypoint-initdb.d/setup.sh
88 ports :
99 - 45000:5432
1010 replica_1 :
11- image : postgres:17
11+ image : postgres:18
1212 environment :
1313 POSTGRES_PASSWORD : postgres
1414 volumes :
@@ -20,7 +20,7 @@ services:
2020 ports :
2121 - 45001:5432
2222 replica_2 :
23- image : postgres:17
23+ image : postgres:18
2424 environment :
2525 POSTGRES_PASSWORD : postgres
2626 volumes :
You can’t perform that action at this time.
0 commit comments