API2 dev improvements (#46)

This commit is contained in:
Niklas Fondberg
2022-02-01 13:59:04 +01:00
committed by GitHub
parent 0b0e4f99f8
commit f0b18c6757
6 changed files with 37 additions and 2 deletions
-2
View File
@@ -4,5 +4,3 @@ COPY ./requirements.txt /app
RUN pip install -r requirements.txt
COPY . /app/
COPY ./wsgi.py /app/main.py
RUN rm /app/wsgi.py
+10
View File
@@ -0,0 +1,10 @@
FROM tiangolo/uwsgi-nginx-flask:python3.7
WORKDIR /app
COPY ./requirements.txt /app/
RUN pip install -r requirements.txt
+23
View File
@@ -0,0 +1,23 @@
version: '3.2'
services:
api22:
build:
context: ./
dockerfile: Dockerfile-dev
container_name: api2.uwsgi-dev.web
hostname: api2-uwsgi.local
volumes:
- ./:/app
ports:
- "1881:80"
environment:
- SQLALCHEMY_DATABASE_URI=postgresql://fondberg:@docker.for.mac.localhost/photowall
- API_KEYS=[]
- DEBUG=True
# - SQLALCHEMY_TRACK_MODIFICATIONS=True # change in prestart.sh
networks:
default:
external:
name: photowall-docker-network
View File
View File
+4
View File
@@ -0,0 +1,4 @@
[uwsgi]
module = main
callable = app
touch-reload = uwsgi-reload