mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 12:29:16 +00:00
add pgbouncer image
This commit is contained in:
parent
69a2b97932
commit
8f541d2828
15
pgbouncer/Dockerfile
Normal file
15
pgbouncer/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM alpine:edge
|
||||
|
||||
ENV UID=991 GID=991
|
||||
|
||||
RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||
&& apk -U add pgbouncer@testing tini su-exec \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY run.sh /usr/local/bin/run.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/run.sh
|
||||
|
||||
VOLUME /config
|
||||
|
||||
CMD ["/sbin/tini","--","run.sh"]
|
4
pgbouncer/run.sh
Normal file
4
pgbouncer/run.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
mkdir /run/pgbouncer
|
||||
chown -R $UID:$GID /etc/pgbouncer /var/log/pgbouncer /run/pgbouncer
|
||||
su-exec $UID:$GID pgbouncer /etc/pgbouncer/pgbouncer.ini
|
Loading…
x
Reference in New Issue
Block a user