git clone https://github.com/humlab-sead/sead-deployment.gitcd sead-deploymentgit clone --recurse-submodules https://github.com/humlab-sead/sead_browser_clientgit clone --recurse-submodules https://github.com/humlab-sead/json_api_server./generate_env.shto copy .env-example to .env and fill it out with auto-generated passwords.- Edit
.env. Check COMPOSE_PROJECT_NAME is not colliding with any other project. Set DOMAIN to whatever you want, but we use sead.local here. docker-compose buildWait until everything is built.- While waiting; edit /etc/hosts in WSL and add
127.0.0.1 sead.local. Then edit the Windows hosts file (C:\Windows\System32\drivers\etc) and do the same. docker compose up -dTo start everything.docker compose psTo check that everything seems to be fine. The PostgREST service will be failing/restarting, this is fine at this stage since it's due to not having imported the database yet. Everything else should be running ok../run_database_import.shThis builds the database via the sead_change_control system../preload_jas.shto build the Json Api Server MongoDB database from the Postgres database. This will take a while.docker compose down && docker compose up -dTo restart everything.
System should now be available at http://sead.local or whatever address you specified.
If you want to do development of the webclient:
- Run VSCode and attach to the running container sead-client-1.
If you want to do development of the JAS:
- Open the json_api_server directory in vscode. Server will automatically restart when code changes.
Note: If you are deploying multiple instances on the same server, make sure to set the COMPOSE_PROJECT_NAME (in .env) to something unique for each instance.