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-composeare 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-deploydirectory 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,nanois 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/Caddyfileto be your domain from step 0. This could beyourdomain.comordr.yourdomain.comif you are using a subdomain (drcould be whatever you want). - Edit the various
<>sections indocker-compose.yml.- Anything with
/ABSOLUTE/PATH/TOneeds to be replaced with the absolute path to the current directory, for example/home/user/example-docker-deploy. You can easily get this by runningpwdto 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 -dto start dungeon-revealer and the proxy. Note: after they have started, you can rundocker logs dun_revordocker logs caddy - Go to your domain in the browser and you should see dungeon-revealer!