Signed-off-by: Hipstercat <tasty@hipstercat.fr>
This commit is contained in:
Amazed 2021-12-22 16:04:25 +01:00
parent af89e219cb
commit 642fd67d4e
Signed by: hipstercat
GPG Key ID: BF42C937290F5641
2 changed files with 25 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM python:3.9-lite
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0"]

19
docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.9"
services:
api:
container_name: gmd-api
restart: always
build:
dockerfile: Dockerfile
volumes:
- ./blobs:/code/blobs
- ./config.json:/code/config.json
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.gckmaps.rule=Host(`gckmaps.hipstercat.fr`)"
- "traefik.http.routers.gckmaps.entrypoints=websecure"
networks:
web:
external: true