-
-
Notifications
You must be signed in to change notification settings - Fork 1
Deploying
Yeo Wen Qin, Kaynn edited this page Jun 29, 2024
·
7 revisions
- Docker, with Docker Compose
Last Tested on RHEL 9.4, with
Docker version 27.0.2
andDocker Compose version v2.28.1
.
- Clone the Git repository, or grab the latest release source code.
git clone https://github.com/wqyeo/Cappu-Crypt.git
- Duplicate
.env.example
into.env
.- Modify
.env
as needed.
- Modify
- Grab the
.jar
file from the latest releases. - Move the
.jar
file into a new foldertarget
in the project's directory. - Run Docker Compose on the provided file.
docker-compose up --build
- Your API endpoint is now accessible.
- External Facing API Port is based on
.env
. - Docker network port defaults to 8080.
- External Facing API Port is based on
The docker compose comes with a PostgreSQL container.
If you are using your own database instance elsewhere, you can modifydocker-compose.yml
to remove the PostgreSQL service.
- Docker, with Docker Compose
- Maven
Last tested on Debian 12, with
Apache Maven 3.8.7
,Docker version 20.10.25
anddocker-compose version 1.29.2
.
- Clone the Git repository, or grab the latest release source code.
git clone https://github.com/wqyeo/Cappu-Crypt.git
- Duplicate
.env.example
into.env
.- Modify
.env
as needed.
- Modify
- Package the project with Maven.
mvn package -DskipTests=true -f pom.xml
- Run Docker Compose on the provided file.
docker-compose up --build
- Your API endpoint is now accessible.
- External Facing API Port is based on
.env
. - Docker network port defaults to 8080.
- External Facing API Port is based on
The docker compose comes with a PostgreSQL container.
If you are using your own database instance elsewhere, you can modifydocker-compose.yml
to remove the PostgreSQL service.