Installation
Quick start
We provide a docker-compose.yml file for quick and easy setup.
docker-compose up -d --build --remove-orphans
The service should be available at https://localhost.
Deployment with Docker
- Before deploying to a remote server, please adapt the
docker-compose.yml,Caddyfile(URL of the server for the HTTPS certificate) as well as thesrc/main/resources/application.ymlfiles for your needs. - If you use the Ansible playbook provided in the
ansibledirectory to deploy the Docker stack to your server, please also adapt theansible/hosts.ini(IP of the server) andansible/deploy.yml(Since you have made some changes, it is not possible to clone the repository. Therefore, please transfer your code to the server in another way.).
Deployment without Docker
Requirements
- Linux server
- Java 11
- Maven
TastyLabs
- Create the folder for the application:
mkdir /opt/tastylabs && cd /opt/tastylabs - Clone the source code:
git clone https://github.com/TastyLabs/TastyLabs.git /opt/tastylabs - Adapt the
src/main/resources/application.ymlfile for your needs. - Build the Spring Boot application:
mvn package - Copy the
.jarfile to the current directory:cp ./target/*.jar ./app.jar - Start the application with
java -jar app.jar
Note: You may want to start the .jar file as a service.
Caddy Reverse Proxy
- Adapt the
Caddyfilefile for your needs. - Install Caddy according to their docs.
- Copy the
Caddyfileto the right location:cp Caddyfile /etc/caddy/Caddyfile - Restart Caddy.
Deletion of the database
If you want to delete all stored recipes, delete the data/database.*.db files.