P5-4836 deploy api to production (new hostname)

This commit is contained in:
Niklas Fondberg
2020-02-27 13:06:58 +01:00
committed by GitHub
parent d2c567a7cd
commit b08aa76acc
9 changed files with 677 additions and 20 deletions
+21
View File
@@ -0,0 +1,21 @@
version: '3.2'
services:
api22:
build:
context: ./
dockerfile: Dockerfile
container_name: api2.uwsgi.web
hostname: api2-uwsgi.local
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