aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-06-19 20:39:09 -0700
committerFuwn <[email protected]>2021-06-19 20:39:09 -0700
commit77a682924524fde3476b17359d184cb72fc23b3f (patch)
tree22702986a316dcbea8002c97cd541e9a9a288750 /README.rst
downloaddocker-asmttpd-77a682924524fde3476b17359d184cb72fc23b3f.tar.xz
docker-asmttpd-77a682924524fde3476b17359d184cb72fc23b3f.zip
:whale2:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst84
1 files changed, 84 insertions, 0 deletions
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..6701af0
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,84 @@
+🐋 docker-asmttpd
+=================
+
+`ASMTTPD <https://github.com/nemasu/asmttpd>`_, but Dockerized!
+
+Building
+========
+
+Building your own images of this repository should only be used for
+developmental purposes! If you are a consumer, use the
+[prebuilt images](https://hub.docker.com/r/fuwn/asmttpd).
+
+.. code-block:: shell
+
+ $ docker build -t $USERNAME/asmttpd .
+
+Usage
+=====
+
+Docker
+------
+
+Prerequisites
+^^^^^^^^^^^^^
+
+- `Docker <https://docs.docker.com/engine/install/>`_
+
+Usage
+^^^^^
+
+.. code-block:: shell
+
+ $ docker run \
+ > -p 8080:80 \
+ > -v /var/lib/asmttpd:/usr/src/app/web_root \
+ > fuwn/asmttpd
+
+Copyable
+^^^^^^^^
+
+.. code-block:: shell
+
+ docker run -d -p 8080:80 -v /var/lib/asmttpd:/usr/src/app/web_root fuwn/asmttpd
+
+Notes
+^^^^^
+
+Your web root directory can be found in :code:`/var/lib/asmttpd`.
+
+Docker Compose
+--------------
+
+- `Docker <https://docs.docker.com/engine/install/>`_
+- `Docker Compose <https://docs.docker.com/compose/install/>`_ (newer versions of Docker include Docker Compose!)
+
+Usage
+^^^^^
+
+1. Create a directory, preferably in a monitorable location, :code:`cd` into it, and create a file named :code:`docker-compose.yml` with the following contents:
+
+.. code-block:: yml
+
+ # docker-compose.yml
+
+ version: "3.3"
+ services:
+ asmttpd:
+ ports:
+ - "8080:80"
+ volumes:
+ - ./asmttpd:/usr/src/app/web_root
+ image: fuwn/asmttpd
+
+2. Execute :code:`docker-compose up -d` (or :code:`docker compose up -d` in later versions of Docker).
+
+Notes
+^^^^^
+
+Your web root directory can be found in :code:`./asmttpd`.
+
+License
+~~~~~~~
+
+`GNU General Public License v3.0 <./LICENSE>`_