Skip to content

rojenzaman/amusewiki-docker

Repository files navigation

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