API2 dev improvements (#46)
This commit is contained in:
@@ -4,5 +4,3 @@ COPY ./requirements.txt /app
|
|||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
COPY ./wsgi.py /app/main.py
|
|
||||||
RUN rm /app/wsgi.py
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
FROM tiangolo/uwsgi-nginx-flask:python3.7
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./requirements.txt /app/
|
||||||
|
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user