Final Year Project
Go to file
2024-05-12 15:29:36 +01:00
logic added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
sql added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
views/py runner-go (#102) 2024-05-10 02:13:02 +01:00
webpage added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
.air.toml closes #49 and possible done #46 2023-10-22 23:02:39 +01:00
.gitignore closes #46 2023-10-25 14:50:58 +01:00
auto_reload.sh chore: work on the expandable models 2024-02-08 18:20:58 +00:00
config.toml added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
docker-compose.yml added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
DockerfileProxy added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
DockerfileServer fix tensorflow version 2024-05-06 18:17:15 +01:00
go.mod runner-go (#102) 2024-05-10 02:13:02 +01:00
go.sum moved to psql pool closes #99 2024-04-17 17:46:43 +01:00
main.go added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
nginx.proxy.conf added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
README.md added docker compose to run everything in one go 2024-05-12 15:29:36 +01:00
requirements.txt fix tensorflow version 2024-05-06 18:17:15 +01:00
run.sh fix tensorflow version 2024-05-06 18:17:15 +01:00
shell.nix chore: added model delete related to #2 2023-09-21 15:38:22 +01:00

Configure the system

Go to the config.toml file and setup your hostname

Build the containers

Running this commands on the root of the project will setup the nessesary.

Make sure that your docker/podman installation supports domain name resolution between containers

docker build -t andre-fyp-proxy -f DockerfileProxy
docker build -t andre-fyp-server -f DockerfileServer
cd webpage
docker build -t andre-fyp-web-server .
cd ..

Run the docker compose

Running docker compose sets up the database server, the web page server, the proxy server and the main server

	docker compose up

Setup the Database

On another terminal instance create the database and tables.

Note: the password can be changed in the docker-compose file

PGPASSWORD=verysafepassword psql -h localhost -U postgres -f sql/base.sql
PGPASSWORD=verysafepassword psql -h localhost -U postgres -d fyp -f sql/user.sql
PGPASSWORD=verysafepassword psql -h localhost -U postgres -d fyp -f sql/models.sql
PGPASSWORD=verysafepassword psql -h localhost -U postgres -d fyp -f sql/tasks.sql

Restart docker compose

Now restart docker compose and the system should be available under the domain name set up on the config.toml file