Al-Azif

docker-compose.yml

Oct 24th, 2020 (edited)
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.34 KB | None | 0 0
  1. ---
  2. version: "3.8"
  3. services:
  4.   dns:
  5.     image: alazif/exploit-host-dns:latest
  6.     ports:
  7.      - "53:53/tcp"
  8.       - "53:53/udp"
  9.     volumes:
  10.       - type: volume
  11.         source: /var/www/zones.json
  12.         target: /opt/dns-config-watchdog/zones.json
  13.         read_only: true
  14.     environment:
  15.       REDIRECT_IPV4: $(ip route get 1.1.1.1 2> /dev/null | awk -F"src " 'NR==1{split($2,a," ");print a[1]}')
  16.       REDIRECT_IPV6: $(ip route get 2606:4700:4700::1111 2> /dev/null | awk -F"src " 'NR==1{split($2,a," ");print a[1]}')
  17.     restart: unless-stopped
  18.   http:
  19.     image: alazif/exploit-host-http:latest
  20.     ports:
  21.      - "80:80/tcp"
  22.       - "443:443/tcp"
  23.     volumes:
  24.       - type: bind
  25.         source: /var/www
  26.         target: /var/www
  27.         read_only: true
  28.       - type: bind
  29.         source: /var/log/nginx
  30.         target: /var/log/nginx
  31.         read_only: false
  32.     environment:
  33.      # This is left blank on purpose so it uses the ENV variable from the host
  34.       ROOT_DOMAIN:
  35.      # This is left blank on purpose because it's stored as a secret on the host
  36.       CERTBOT_EMAIL:
  37.     restart: unless-stopped
  38.   watchtower:
  39.    # This container is to keep all the docker containers up-to-date
  40.     image: containrrr/watchtower:latest
  41.     volumes:
  42.      - /var/run/docker.sock:/var/run/docker.sock
  43.     restart: unless-stopped
  44.  
Add Comment
Please, Sign In to add comment