-
-
Notifications
You must be signed in to change notification settings - Fork 1
Deploying
Yeo Wen Qin, Kaynn edited this page Jun 28, 2024
·
7 revisions
- Maven
- Docker, with Docker Compose
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.