UNMAINTENED

This commit is contained in:
2017-12-04 14:54:24 +01:00
parent 3bd074f9d1
commit 88ac35c10b
40 changed files with 939 additions and 0 deletions

View File

@ -0,0 +1,16 @@
FROM alpine:3.6
ENV UID=991 GID=991
RUN apk -U --no-cache add \
pgbouncer \
tini \
su-exec
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
VOLUME /etc/pgbouncer
CMD ["run.sh"]

View File

@ -0,0 +1,10 @@
## wonderfall/pgbouncer
Minimal image for [PgBouncer](https://pgbouncer.github.io/).
### Volumes
- /etc/pgbouncer
### Environment variables
- **GID** : user id *(default : 991)*
- **UID** : group id *(default : 991)*

View File

@ -0,0 +1,4 @@
#!/bin/sh
mkdir /run/pgbouncer
chown -R $UID:$GID /etc/pgbouncer /var/log/pgbouncer /run/pgbouncer
exec su-exec $UID:$GID /sbin/tini -- pgbouncer /etc/pgbouncer/pgbouncer.ini