mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
UNMAINTENED
This commit is contained in:
16
unmaintained/pgbouncer/Dockerfile
Normal file
16
unmaintained/pgbouncer/Dockerfile
Normal 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"]
|
10
unmaintained/pgbouncer/README.md
Normal file
10
unmaintained/pgbouncer/README.md
Normal 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)*
|
4
unmaintained/pgbouncer/run.sh
Normal file
4
unmaintained/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
|
||||
exec su-exec $UID:$GID /sbin/tini -- pgbouncer /etc/pgbouncer/pgbouncer.ini
|
Reference in New Issue
Block a user