- Install
docker
anddocker-compose
- Get code
git clone https://github.com/sysu-ipv6/UNIT3D-Deploy && cd UNIT3D-Deploy
cp .env.template .env
and edit.env
to match your environment. EspeciallyAPP_URL
. You DO NOT have to fill inAPP_KEY
.cp site.conf.template site.conf
and edit it on demand.- Initialize by running
docker-compose -f docker-compose.init.yml run init
Note: If you see something likeSQLSTATE[HY000] [2002] Connection refused
, just wait for seconds and run the command again. This is because the database hasn't started up yet. - Run the application by
docker-compose up -d
- Point the browser to your
APP_URL
, you should see the site running.
Note: If you haven't configured SSL certificates, please follow the instructions of For HTTP only
in https://hdinnovations.github.io/UNIT3D-Docs/manual_install.html`