mirror of
https://github.com/KevinMidboe/planetposen-images.git
synced 2025-10-29 05:10:12 +00:00
36 lines
688 B
Markdown
36 lines
688 B
Markdown
# 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
|
|
```
|