mirror of
https://github.com/KevinMidboe/planetposen-images.git
synced 2025-10-29 13:20:11 +00:00
App for fetching and uploading images to cloud bucket storage
This commit is contained in:
36
README.md
Normal file
36
README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Planetposen image proxy
|
||||
|
||||
App for fetching and uploading images to cloud bucket storage. Should also be a on-the-fly image formatting proxy.
|
||||
|
||||
## Setup
|
||||
|
||||
From source:
|
||||
|
||||
1. `git clone https://github.com/kevinmidboe/planetposen-images`
|
||||
2. `cp .env.example .env`
|
||||
3. Update variables in `.env` file
|
||||
4. `make install`
|
||||
|
||||
## Run
|
||||
|
||||
Run api from command line with:
|
||||
|
||||
```bash
|
||||
make server
|
||||
```
|
||||
|
||||
Run as docker container using:
|
||||
|
||||
```bash
|
||||
(sudo) docker run -d --name planetposen-images -p 8000:8000 \
|
||||
-e PORT=8000
|
||||
-e HOSTNAME=planet.schleppe.cloud
|
||||
-e GCS_BUCKET=planetposen-images
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```bash
|
||||
(sudo) docker run -d --name planetposen-images -p 8000:8000 --env-file .env planetposen-images
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user