File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ x-base:
1111services :
1212 primary :
1313 << : *base
14+ image : ghcr.io/withlogicco/postgres/primary
1415 build :
1516 context : postgres
1617 target : primary
@@ -19,6 +20,7 @@ services:
1920
2021 secondary :
2122 << : *base
23+ image : ghcr.io/withlogicco/postgres/secondary
2224 build :
2325 context : postgres
2426 target : secondary
@@ -27,6 +29,7 @@ services:
2729 - secondary_data:/var/lib/postgresql/data
2830
2931 pgpool2 :
32+ image : ghcr.io/withlogicco/postgres/pgpool2
3033 build :
3134 context : pgpool2
3235 secrets :
Original file line number Diff line number Diff line change 1- FROM ubuntu:22.04 as pgpool
1+ FROM ubuntu:22.04 AS pgpool
22
33# https://www.pgpool.net/mediawiki/index.php/Apt_Repository
44
Original file line number Diff line number Diff line change 1- FROM postgres:16.2 as base
1+ FROM postgres:16.2 AS base
22
33
4- FROM base as primary
4+ FROM base AS primary
55
6- COPY ./postgres/ primary/docker-entrypoint-initdb.d/ docker-entrypoint-initdb.d/
6+ COPY ./primary/docker-entrypoint-initdb.d/ docker-entrypoint-initdb.d/
77
88
9- FROM base as secondary
9+ FROM base AS secondary
1010
11- COPY ./postgres/ secondary/bin/ /usr/local/bin/
11+ COPY ./secondary/bin/ /usr/local/bin/
1212ENTRYPOINT [ "docker-entrypoint-override.sh" ]
1313
1414CMD ["postgres" ]
You can’t perform that action at this time.
0 commit comments