igunublue container

Este commit está contenido en:
Your Name
2020-08-02 23:19:29 +00:00
padre 5a526d0f89
commit 5b0246df8a
Se han modificado 3 ficheros con 41 adiciones y 0 borrados

Ver fichero

@@ -0,0 +1,28 @@
version: '2'
services:
igunublue:
build: ./igunublue
restart: always
hostname: igunublue
container_name: igunublue
entrypoint:
- /bin/bash
- /igunublue/entrypoint.sh
volumes:
- ./igunublue:/igunublue
- ./html:/var/www/html
expose:
- 80
ports:
- "6666:22"
networks:
mynet:
ipv4_address: 172.21.0.101
networks:
mynet:
driver: bridge
ipam:
config:
- subnet: 172.21.0.0/24

Ver fichero

@@ -0,0 +1,9 @@
FROM debian:buster-slim
RUN apt update && apt upgrade -y && apt install -y openssh-server sudo nginx && apt clean
RUN useradd -ms /bin/bash -p "" igunublue
RUN adduser igunublue sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/sudo
RUN echo 'PermitRootLogin no' > /etc/ssh/sshd_config
RUN echo 'PermitEmptyPasswords yes' >> /etc/ssh/sshd_config
WORKDIR /home/igunublue
USER igunublue

Ver fichero

@@ -0,0 +1,4 @@
#!/bin/bash
sudo service ssh start
sudo service nginx start
/bin/sleep infinity