anton-johansson / server

Docker images and scripts for setting up the server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server

Build Status License

Docker images and scripts for setting up the server.

Running

$ alias hostip="echo '<docker ip to host>'"
$ docker run --detach --restart always --name apt-repository-01 --publish 10101:80 anton-johansson/apt-repository
$ docker run --detach --restart always --name apt-repository-02 --publish 10102:80 anton-johansson/apt-repository
$ docker run --detach --restart always --name web-proxy --publish 80:80 --add-host=host:$(hostip) anton-johansson/web-proxy

Building

$ docker build --tag anton-johansson/apt-repository apt-repository/
$ docker build --tag anton-johansson/web-proxy web-proxy/

Configurations

IP tables

# Exceptions to default policy:
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT

# Set default policies:
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT

License

Apache License © Anton Johansson

About

Docker images and scripts for setting up the server.

License:Apache License 2.0


Languages

Language:Nginx 100.0%