ActivityPub translation layer/bridge for Versia Server
Find a file
2024-01-26 12:26:47 -08:00
src Removed mod entities from main.rs 2024-01-26 12:26:47 -08:00
.gitignore initial commit 2024-01-26 12:01:43 -08:00
build.rs initial commit 2024-01-26 12:01:43 -08:00
Cargo.lock initial commit 2024-01-26 12:01:43 -08:00
Cargo.toml initial commit 2024-01-26 12:01:43 -08:00
Dockerfile initial commit 2024-01-26 12:01:43 -08:00
LICENSE Create LICENSE 2024-01-26 12:02:33 -08:00
README.MD initial commit 2024-01-26 12:01:43 -08:00

A simple rust project for microservices using rust, actix, and postgres

This project contains a simple rust project for microservices using rust, actix, and postgres.

The Dockerfile in this project is used to build a docker image for the rust project, the output Docker image is a from scratch image that contains the rust binary.

Building and running the docker image

To build the docker image, run the following command:

> docker build -t f:latest .

To run the docker image, run the following command:

docker run -i -e RUST_LOG="debug" -e DATABASE_URL="postgresql://postgres:postgres@host.docker.internal:5432/database" -e LISTEN="0.0.0.0:8080" -p 8080:8080 f:latest