mirror of
https://gitlab.com/jessieh/simple-shortener.git
synced 2024-11-21 19:11:47 +00:00
Improve example deployments on landing page
This commit is contained in:
parent
218092d2e9
commit
6a0d1a46a2
@ -5,8 +5,12 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
<title>Example Landing Page</title>
|
<title>Example simple-shortener Landing Page</title>
|
||||||
<style>
|
<style>
|
||||||
|
html
|
||||||
|
{
|
||||||
|
font-family: sans-serif;
|
||||||
|
}
|
||||||
pre
|
pre
|
||||||
{
|
{
|
||||||
background: #eee;
|
background: #eee;
|
||||||
@ -37,19 +41,24 @@
|
|||||||
<pre><code>
|
<pre><code>
|
||||||
docker run -d \
|
docker run -d \
|
||||||
-p 80:80 \
|
-p 80:80 \
|
||||||
--name simple-shortener \
|
--env-file config.env \
|
||||||
--mount type=bind,source=<strong>/PATH/TO/YOUR/SITE</strong>,target=/usr/simple-shortener/static/landing_page \
|
--mount source=shortener-db,target=/usr/simple-shortener/db \
|
||||||
simple-shortener
|
--mount type=bind,source=<strong>/PATH/TO/YOUR/SITE</strong>,target=/usr/simple-shortener/static/landing_page,readonly \
|
||||||
|
jessiehildebrandt/simple-shortener
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p><code>docker-compose</code> example<sup>1</sup>:</p>
|
<p><code>docker-compose</code> example<sup>1</sup>:</p>
|
||||||
<pre><code>
|
<pre><code>
|
||||||
simple-shortener:
|
simple-shortener:
|
||||||
build: ./simple-shortener
|
image: jessiehildebrandt/simple-shortener
|
||||||
restart: always
|
env_file: config.env
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- <strong>/PATH/TO/YOUR/SITE</strong>:/usr/simple-shortener/static/landing_page
|
- shortener-db:/usr/simple-shortener/db
|
||||||
|
- <strong>/PATH/TO/YOUR/SITE</strong>:/usr/simple-shortener/static/landing_page:ro
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
shortener-db:
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user