Dockerization and generalization of the project. Make it accessable for everyone
This commit is contained in:
parent
d3a5cac4be
commit
85ff8b12f3
7 changed files with 256 additions and 169 deletions
28
README.md
28
README.md
|
@ -1,4 +1,30 @@
|
|||
# crablog
|
||||
# Crablog
|
||||
|
||||
Pure rust. Built with actix, diesel, tera, serde and sqlite3.
|
||||
Environment variables are documented in [variables.md](./doc/environment.md)
|
||||
|
||||
## Build instructions using docker
|
||||
|
||||
1. Clone the repository
|
||||
```bash
|
||||
git clone https://github.com/leonardlorenz/crablog
|
||||
cd crablog
|
||||
```
|
||||
2. Set up your configuration file (see below)
|
||||
3. Build and run the docker container (Will compile from source and thus take a while)
|
||||
```bash
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
## Configuration environment file
|
||||
|
||||
All configuration options are defined in .env, to be created in the same directory as this readme.
|
||||
|
||||
An example configuration:
|
||||
|
||||
```bash
|
||||
USERNAME=yourusername
|
||||
EMAIL=me@mydomain.tld
|
||||
BIND_PORT=8000
|
||||
SUBMIT_TOKEN=Submit!123 # token needed for submitting
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue