mirror of
https://gitlab.com/jessieh/simple-shortener.git
synced 2024-11-23 19:51:46 +00:00
Improve example deployments on landing page
This commit is contained in:
parent
218092d2e9
commit
6a0d1a46a2
@ -5,8 +5,12 @@
|
||||
<head>
|
||||
<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">
|
||||
<title>Example Landing Page</title>
|
||||
<title>Example simple-shortener Landing Page</title>
|
||||
<style>
|
||||
html
|
||||
{
|
||||
font-family: sans-serif;
|
||||
}
|
||||
pre
|
||||
{
|
||||
background: #eee;
|
||||
@ -37,19 +41,24 @@
|
||||
<pre><code>
|
||||
docker run -d \
|
||||
-p 80:80 \
|
||||
--name simple-shortener \
|
||||
--mount type=bind,source=<strong>/PATH/TO/YOUR/SITE</strong>,target=/usr/simple-shortener/static/landing_page \
|
||||
simple-shortener
|
||||
--env-file config.env \
|
||||
--mount source=shortener-db,target=/usr/simple-shortener/db \
|
||||
--mount type=bind,source=<strong>/PATH/TO/YOUR/SITE</strong>,target=/usr/simple-shortener/static/landing_page,readonly \
|
||||
jessiehildebrandt/simple-shortener
|
||||
</code></pre>
|
||||
<p><code>docker-compose</code> example<sup>1</sup>:</p>
|
||||
<pre><code>
|
||||
simple-shortener:
|
||||
build: ./simple-shortener
|
||||
restart: always
|
||||
image: jessiehildebrandt/simple-shortener
|
||||
env_file: config.env
|
||||
ports:
|
||||
- 80:80
|
||||
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>
|
||||
</section>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user