Merge "Run haproxy-statsd as uid 1000"
This commit is contained in:
commit
268665dc18
@ -17,4 +17,16 @@ FROM docker.io/opendevorg/python-base:3.9-bullseye
|
|||||||
|
|
||||||
COPY haproxy-statsd.py /usr/local/bin
|
COPY haproxy-statsd.py /usr/local/bin
|
||||||
RUN pip install statsd
|
RUN pip install statsd
|
||||||
|
|
||||||
|
# 1000 is what haproxy's stats socket defaults to.
|
||||||
|
RUN addgroup haproxy --gid 1000 --system \
|
||||||
|
&& adduser \
|
||||||
|
--system \
|
||||||
|
--uid 1000 \
|
||||||
|
--home /home/haproxy \
|
||||||
|
--shell /bin/bash \
|
||||||
|
--ingroup haproxy \
|
||||||
|
haproxy
|
||||||
|
|
||||||
|
USER 1000:1000
|
||||||
CMD ["/usr/local/bin/haproxy-statsd.py"]
|
CMD ["/usr/local/bin/haproxy-statsd.py"]
|
||||||
|
@ -46,6 +46,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
image: docker.io/opendevorg/haproxy-statsd:latest
|
image: docker.io/opendevorg/haproxy-statsd:latest
|
||||||
network_mode: host
|
network_mode: host
|
||||||
|
user: "1000:1000"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/haproxy/run:/var/haproxy/run
|
- /var/haproxy/run:/var/haproxy/run
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user