Feat/docker

This commit is contained in:
i.j 2024-01-24 18:01:10 +00:00
parent fb5c35c45b
commit 1f57e9ba0b
3 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,6 @@
v3.13.3 - 16/01/2024
- Add Docker compose
v3.13.2 - 16/01/2024 v3.13.2 - 16/01/2024
- Fix truncate CSS class name - Fix truncate CSS class name

24
docker-compose.yml Normal file
View File

@ -0,0 +1,24 @@
# This is a docker compose file to demonstrate and test the mastodon-timeline widget
# Run this docker CLI from the root repo directory:
#
# $ docker compose up
version: '3.3'
services:
lighttpd:
image: jitesoft/lighttpd
ports:
- "8080:80"
- "8443:443"
volumes:
- ./src/index.html:/var/www/index.html
- ./src/mastodon-timeline.js:/var/www/mastodon-timeline.js
- ./src/mastodon-timeline.css:/var/www/mastodon-timeline.css
environment:
- PORT=80
- SERVER_NAME=mastodon-timeline
- SERVER_ROOT=/var/www
- CONFIG_FILE=/etc/lighttpd/lighttpd.conf
- SKIP_HEALTHCHECK=false
- MAX_FDS=1024

View File

@ -7,7 +7,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="mastodon, embed timeline" /> <meta name="keywords" content="mastodon, embed timeline" />
<meta name="description" content="Mastodon embed timeline" /> <meta name="description" content="Mastodon embed timeline" />
<link rel="stylesheet" href="mastodon-timeline.css" /> <link rel="shortcut icon" href="#" />
<link rel="stylesheet" href="./mastodon-timeline.css" />
<style> <style>
html { html {
height: 100%; height: 100%;
@ -39,6 +40,6 @@
</div> </div>
</div> </div>
<script src="mastodon-timeline.js"></script> <script src="./mastodon-timeline.js"></script>
</body> </body>
</html> </html>