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