Compare commits

..

No commits in common. "69fd92dc77408a39691c293b6fc2b113e798d30f" and "ad4c187475933e49c6c5eaa1cabbdb0f4152dc57" have entirely different histories.

9 changed files with 7 additions and 23 deletions

View File

@ -1,5 +1,5 @@
set -e set -e
version=2.1.0 version=2.0.1
docker build -t jeancloud/contact-mailer:latest -t jeancloud/contact-mailer:$version . docker build -t jeancloud/contact-mailer:latest -t jeancloud/contact-mailer:$version .
docker push jeancloud/contact-mailer:latest docker push jeancloud/contact-mailer:latest
docker push jeancloud/contact-mailer:$version docker push jeancloud/contact-mailer:$version

View File

@ -22,17 +22,17 @@ http {
server { server {
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, OPTIONS'; add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, OPTIONS';
listen 8080; listen 8008;
location /admin { location /admin {
root /home/ilya/git/contact_mailer/adminer; root /home/ilya/git/contact_mailer/adminer;
index index.html; index index.html;
} }
location / { location / {
root /home/ilya/git/contact_mailer/test; root /home/ilya/git/contact_mailer;
index test.html; index test.html;
} }
location /api/ { location /api/ {
proxy_pass http://mailer:8080/; proxy_pass http://localhost:8080/;
} }
} }
} }

View File

@ -1,13 +0,0 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
email = "*"
bottle = "*"
[requires]
python_version = "3.6"

View File

@ -2,11 +2,11 @@ version: '3'
services: services:
db: db:
image: mongo image: mongo
mailer: mailer:
build: ../server build: ..
volumes: volumes:
- ../server/main.py:/usr/src/app/main.py - ../main.py:/usr/src/app/main.py
- ./uwsgi:/tmp/uwsgi - ./uwsgi:/tmp/uwsgi
depends_on: depends_on:
- db - db
@ -19,10 +19,7 @@ services:
SMTP_SERVER_SENDER: moi SMTP_SERVER_SENDER: moi
ADMIN_PASSWORD: admin ADMIN_PASSWORD: admin
SMTP_SSL: 'true' SMTP_SSL: 'true'
proxy: proxy:
image: nginx image: nginx
ports: ports:
- 8080:8080 - 8080:8080
volumes:
- ./nginx.conf:/etc/nginx.conf