Coder Social home page Coder Social logo

rojenzaman / amusewiki-docker Goto Github PK

View Code? Open in Web Editor NEW
12.0 0.0 0.0 206 KB

Production-ready docker images for AmuseWiki.

Home Page: https://hub.docker.com/r/rojen/amusewiki

License: MIT License

Shell 75.41% Makefile 8.04% Dockerfile 16.55%
amusewiki docker docker-compose library library-management-system podman podman-compose wiki

amusewiki-docker's Introduction

Amusewiki Docker

rojen/amusewiki:package rojen/amusewiki:texlive-minimal rojen/amusewiki:texlive-base rojen/amusewiki:texlive-full

Quickly deploy a demo on Play With Docker

Try in PWD

Click the button above then click start, wait for it to deploy. Then click 80.

  • The default username is: amusewiki
  • The default password is: changeme

Tags

Environment Variables

Name Required Description
POST_DOMAIN No Change initial or selected domain
CHANGE_DOMAIN_BY_ID No Default is initial domain: 1
CONTAINER_IS_BEHIND_HTTPS_TRAEFIK No Setting this to true will enable HTTPS Traefik support
AMW_WORKERS No Specify number of process set by script/init-fcgi.pl
AMW_NPROC No Specify number of perl-fcgi process
CHANGE_PASSWORD_BEFORE_RUN No Setting this to true will enable password changing
AMW_USERNAME No Set username
AMW_PASSWORD No Set password
HOST_SSH_PUBLIC_KEY No Authorize host ssh public key
GENERATE_NEW_SSH_KEY No Setting thist to true will crate new ssh key
NGX_PREFIX No amusewikidebian or amusewiki
AMUSEWIKI_SWITCH_BRANCH No Switch to given branch before run (texlive-minimal, texlive-base, texlive-full)
CREATE_MISSING_STAGING_FILES No Setting this to true will create missing staging files
AMW_SQLITE_PATH No Default is /var/lib/dbconfig-common/sqlite3/amusewiki/amusewiki
UPDATE_AMUSEWIKI No Setting this to true will update/pull amusewiki before start
OTHER_VOLUMES_USED_IN_CONTAINER No Set the container path of your custom volumes. Commands like chown, backup_amw.sh will detect these objects. Example: /var/lib/amusewiki/log, /var/lib/amusewiki/ssl, /var/lib/amusewiki/.ssh
EMAIL_SENDER_TRANSPORT No Set it to SMTP
EMAIL_SENDER_TRANSPORT_ssl No Required for most email providers, set it to 1
EMAIL_SENDER_TRANSPORT_host No e.g. for Riseup mail.riseup.net
EMAIL_SENDER_TRANSPORT_port No e.g. for Riseup 465
EMAIL_SENDER_TRANSPORT_sasl_username No e.g. for Riseup [email protected]
EMAIL_SENDER_TRANSPORT_sasl_password No e.g. for Riseup yourpass

Volumes

Required volumes:

  • /var/lib/amusewiki/repo git
  • /var/lib/amusewiki/thumbnails thumb
  • /var/lib/amusewiki/staging staging
  • /var/lib/dbconfig-common/sqlite3/amusewiki db
  • /etc/nginx/sites-enabled web

Optional volumes: (set OTHER_VOLUMES_USED_IN_CONTAINER to use them)

  • /var/lib/amusewiki/log log
  • /var/lib/amusewiki/ssl ssl
  • /var/lib/amusewiki/.ssh ssh

Quick docker-compose.yml

version: '3.4'
services:
  app:
    image: rojen/amusewiki:package
    ports:
      - '80:80'
      - '443:443'
    environment:
      - POST_DOMAIN=localhost
      - CHANGE_PASSWORD_BEFORE_RUN=true
      - AMW_USERNAME=amusewiki
      - AMW_PASSWORD=changeme
    volumes:
      - repo:/var/lib/amusewiki/repo
      - thumb:/var/lib/amusewiki/thumbnails
      - staging:/var/lib/amusewiki/staging
      - db:/var/lib/dbconfig-common/sqlite3/amusewiki
      - web:/etc/nginx/sites-enabled
volumes:
  repo:
  thumb:
  staging:
  db:
  web:

Be careful!

This repo use SQLite as a database. Currently MySQL and PostgreSQL are not supported. See: TODO

This image is production ready! Beleive it or not.

How to use?

Read the usage notes and check the example docker-compose.yml files: amusewiki-docker/wiki

Related Projects

amusewiki-docker's People

Contributors

cohosh avatar rojenzaman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amusewiki-docker's Issues

"Access denied" after installing

Using :packages tag, and when I deploy, the site says "Access denied"...

In /var/log/amusewiki/installation.log it has .localdomain wired up and I'm not sure how to replace that with my real domain?

What are the post-install steps in the docker context?

Thanks for the work!

amusewiki-jobber.service: Can't locate AmuseWikiFarm/Schema.pm in @INC

The wiki waits at "Status: pending" mode when publishing new text:

amusewiki-jobber.service: Can't locate AmuseWikiFarm/Schema.pm in @INC (you may need to install the AmuseWikiFarm::Schema module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /var/lib/amusewiki/script/amusewiki-jobber line 8.
amusewiki-jobber.service: BEGIN failed--compilation aborted at /var/lib/amusewiki/script/amusewiki-jobber line 8.

Set up possible with traefik as proxy with https?

I have traefik configured to use https only and for set up, i understand that we need to use http to log into the site to configure it?

is it possible to somehow set up the https automatically, somehow feeding the certs from traefik into amusewiki?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.