Skip to content

Commit 70ae93c

Browse files
committed
fix: build context
1 parent 65a996d commit 70ae93c

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ x-base:
1111
services:
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:

pgpool2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

postgres/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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/
1212
ENTRYPOINT [ "docker-entrypoint-override.sh" ]
1313

1414
CMD ["postgres"]

0 commit comments

Comments
 (0)