A website with a Go backend.
Install dependencies for the server
cd ./server && go mod vendor
and client.
cd .. && npm i
Set environment variables for:
-
SERVER_PORT
-
CLIENT_PORT
-
DB_PORT
-
DB_ROOT_PW
-
DB_USER
-
DB_PASSWORD
-
DB_NAME
If you need to change the DB environment variables at any point, make sure to delete /data
before running the container.
Otherwise you can update them manually inside the container.
docker compose up