From 6ad3a0d59c16ece9b7e33de0a5f8ec0128775679 Mon Sep 17 00:00:00 2001 From: Danny Houtworm Date: Sun, 13 Aug 2023 21:23:18 +0000 Subject: [PATCH] bla --- Readme.md | 3 --- srcs/docker-compose.yml | 8 +++++++- srcs/requirements/redis/Dockerfile | 13 ++----------- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/Readme.md b/Readme.md index 3607848..408a534 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,3 @@ -# Adminer -create dockerfile - # Redis for wordpress create dockerfile diff --git a/srcs/docker-compose.yml b/srcs/docker-compose.yml index 7f0c5a1..a812018 100644 --- a/srcs/docker-compose.yml +++ b/srcs/docker-compose.yml @@ -48,7 +48,6 @@ services: - /home/djonker/data/wordpress:/home/admin ports: - 21:21 - - 20:20 - 21000:21000 adminer: build: ./requirements/adminer @@ -59,6 +58,13 @@ services: networks: wordpress: ipv4_address: 172.20.30.40 + redis: + build: ./requirements/redis + container_name: redis + restart: always + networks: + wordpress: + ipv4_address: 172.20.30.50 networks: wordpress: diff --git a/srcs/requirements/redis/Dockerfile b/srcs/requirements/redis/Dockerfile index 046824f..0d874b3 100644 --- a/srcs/requirements/redis/Dockerfile +++ b/srcs/requirements/redis/Dockerfile @@ -1,15 +1,6 @@ FROM alpine RUN sleep 10 RUN apk update -RUN apk add openssl -RUN apk add pure-ftpd --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted -RUN apk add telegraf -COPY srcs/start.sh /root/start.sh -COPY srcs/vsftpd.conf /etc/vsftpd/vsftpd.conf -COPY srcs/telegraf.conf /etc/telegraf/telegraf.conf +RUN apk add redis WORKDIR /root/ -RUN adduser --disabled-password admin -RUN echo "admin:password" | chpasswd -CMD sh start.sh -EXPOSE 21/tcp -EXPOSE 21000/tcp +CMD sh redis-server