From d4e2959d217b4947d7edda35948865f7c9d5dd56 Mon Sep 17 00:00:00 2001 From: josh! <17993143+joshhighet@users.noreply.github.com> Date: Sun, 10 Sep 2023 21:39:29 +1200 Subject: [PATCH] subfolder --- docker-compose.yml | 4 ++-- check-tor.sh => haproxy/check-tor.sh | 0 haproxy/dockerfile | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) rename check-tor.sh => haproxy/check-tor.sh (100%) create mode 100644 haproxy/dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 1f149f5..ec9c9ba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,7 @@ services: replicas: ${SOCKS:-5} haproxy: - image: haproxy:alpine + build: ./haproxy restart: always depends_on: tor: @@ -25,7 +25,7 @@ services: - 1337:1337 volumes: - haproxy_conf:/usr/local/etc/haproxy - - ./check-tor.sh:/usr/local/etc/haproxy/check-tor.sh + - ./haproxy/check-tor.sh:/usr/local/etc/haproxy/check-tor.sh networks: - net_tor diff --git a/check-tor.sh b/haproxy/check-tor.sh similarity index 100% rename from check-tor.sh rename to haproxy/check-tor.sh diff --git a/haproxy/dockerfile b/haproxy/dockerfile new file mode 100644 index 0000000..c204967 --- /dev/null +++ b/haproxy/dockerfile @@ -0,0 +1,4 @@ +FROM haproxy:alpine +USER root +RUN apk add --no-cache curl +USER haproxy \ No newline at end of file