igunublue container
Este commit está contenido en:
28
development/igunublue/docker-compose.yml
Archivo normal
28
development/igunublue/docker-compose.yml
Archivo normal
@@ -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
|
||||
9
development/igunublue/igunublue/Dockerfile
Archivo normal
9
development/igunublue/igunublue/Dockerfile
Archivo normal
@@ -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
|
||||
4
development/igunublue/igunublue/entrypoint.sh
Archivo normal
4
development/igunublue/igunublue/entrypoint.sh
Archivo normal
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
sudo service ssh start
|
||||
sudo service nginx start
|
||||
/bin/sleep infinity
|
||||
Referencia en una nueva incidencia
Block a user