docker
Signed-off-by: Hipstercat <tasty@hipstercat.fr>
This commit is contained in:
parent
af89e219cb
commit
642fd67d4e
6
Dockerfile
Normal file
6
Dockerfile
Normal 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
19
docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user