-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG BASE_VERSION=9.13
FROM dpage/pgadmin4:${BASE_VERSION}
LABEL org.opencontainers.image.source=https://github.com/dogukancagatay/docker-pwless-pgadmin4
LABEL org.opencontainers.image.description="Passwordless pgadmin4"
LABEL org.opencontainers.image.licenses=MIT
ENV PGADMIN_DEFAULT_EMAIL="pgadmin4@pgadmin.org"
ENV PGADMIN_DEFAULT_PASSWORD="admin"
ENV PGADMIN_CONFIG_SERVER_MODE="False"
ENV PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED="False"
ENV POSTGRES_HOST="postgres"
ENV POSTGRES_PORT="5432"
ENV POSTGRES_DB="*"
USER root
COPY primary_entrypoint.sh /primary_entrypoint.sh
RUN chmod +x /primary_entrypoint.sh && \
touch /pgadmin4/servers.json && \
chown pgadmin:root /pgadmin4/servers.json
USER pgadmin
ENTRYPOINT /primary_entrypoint.sh