Skip to content

Commit 5f76c24

Browse files
thiagorasThiago Alves
andauthored
[+] add proxy variables to docker images (#771)
Co-authored-by: Thiago Alves <[email protected]>
1 parent e8f09a0 commit 5f76c24

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

docker/Dockerfile.postgres-plpython3u

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
FROM postgres:17
22

3+
4+
ARG HTTP_PROXY
5+
ARG HTTPS_PROXY
6+
ARG NO_PROXY
7+
8+
ENV HTTP_PROXY=$HTTP_PROXY
9+
ENV HTTPS_PROXY=$HTTPS_PROXY
10+
ENV NO_PROXY=$NO_PROXY
11+
312
# Install the necessary packages for plpython3u
413
RUN apt-get update && apt-get install -y \
514
postgresql-plpython3-17 postgresql-17-pg-qualstats python3-psutil \

docker/compose.pgwatch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ services:
44
build:
55
context: ..
66
dockerfile: ./docker/Dockerfile
7+
args:
8+
HTTP_PROXY: ${HTTP_PROXY}
9+
HTTPS_PROXY: ${HTTPS_PROXY}
10+
NO_PROXY: ${NO_PROXY}
711
image: cybertecpostgresql/pgwatch:latest
812
container_name: pgwatch
913
environment:
1014
PW_SOURCES: postgresql://pgwatch@postgres:5432/pgwatch
15+
HTTP_PROXY: ${HTTP_PROXY}
16+
HTTPS_PROXY: ${HTTPS_PROXY}
17+
NO_PROXY: ${NO_PROXY}
1118
command:
1219
- "--sink=postgresql://pgwatch@postgres:5432/pgwatch_metrics"
1320
- "--sink=prometheus://pgwatch:9187/pgwatch"

docker/compose.postgres.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ services:
66
build:
77
context: .
88
dockerfile: Dockerfile.postgres-plpython3u
9+
args:
10+
HTTP_PROXY: $HTTP_PROXY
11+
HTTPS_PROXY: $HTTPS_PROXY
12+
NO_PROXY: $NO_PROXY
913
# If you want pure PostgreSQL vanilla experience use:
1014
# image: &pgimage "postgres:latest"
1115
image: &pgimage postgres-plpython3u:latest
@@ -19,6 +23,9 @@ services:
1923
- "5432:5432"
2024
environment:
2125
POSTGRES_HOST_AUTH_METHOD: trust
26+
HTTP_PROXY: $HTTP_PROXY
27+
HTTPS_PROXY: $HTTPS_PROXY
28+
NO_PROXY: $NO_PROXY
2229
volumes:
2330
- "./bootstrap/init_replication.sh:/docker-entrypoint-initdb.d/init_replication.sh"
2431
- "./bootstrap/create_role_db.sql:/docker-entrypoint-initdb.d/create_role_db.sql"

0 commit comments

Comments
 (0)