This is a minimal example to deploy dungeon-revealer behind a proxy using Docker. This is written for Linux/Mac terminals. If you are using Windows, you'll have to translate the commands yourself.
- Setup your domain and the machine which dungeon-revealer will run on (a computer at home, a cloud VPS, etc.). Make sure your domain is pointing at the public IP address of the machine. There are many ways to achieve this, so it is beyond the scope of this tutorial. However, you will need the domain (or IP address) to continue this tutorial.
- Make sure
git
,docker
, anddocker-compose
are installed on the machine. If you are using a VPS, this is likely already done for you or something you can choose when provisioning. - Clone this repo on the machine that will serve dungeon-revealer.
git clone https://github.com/dungeon-revealer/example-docker-deploy
- Enter the
example-docker-deploy
directory and edit some files. Any section wrapped in angled brackets,<>
needs to be changed to reflect your setup. If you are unfamiliar with editing files in the terminal,nano
is probably your best bet because it displays its key combos.- Get into the correct directory using
cd example-docker-deploy
. - Edit the
<YOUR_DOMAIN>
section ofcaddy/Caddyfile
to be your domain from step 0. This could beyourdomain.com
ordr.yourdomain.com
if you are using a subdomain (dr
could be whatever you want). - Edit the various
<>
sections indocker-compose.yml
.- Anything with
/ABSOLUTE/PATH/TO
needs to be replaced with the absolute path to the current directory, for example/home/user/example-docker-deploy
. You can easily get this by runningpwd
to print the working directory. - The dungeon-revealer password variables need to be replaced with your chosen passwords. Note: these passwords need to be strong since dungeon-revealer will be publicly accessible.
- Anything with
- Get into the correct directory using
- Run
docker-compose up -d
to start dungeon-revealer and the proxy. Note: after they have started, you can rundocker logs dun_rev
ordocker logs caddy
- Go to your domain in the browser and you should see dungeon-revealer!