Commit 203f1667f059632240b7ee07bd7da1d3f7a135f6

Authored by Antoine Goutenoir
1 parent 27141fbc
Exists in master

config: update docker containerization

Showing 2 changed files with 5 additions and 7 deletions   Show diff stats
1 -#FROM python:2.7  
2 -FROM tiangolo/uwsgi-nginx-flask:python2.7 1 +FROM tiangolo/uwsgi-nginx-flask:python3.7
3 ADD . /app 2 ADD . /app
4 WORKDIR /app 3 WORKDIR /app
5 RUN pip install -r requirements.txt 4 RUN pip install -r requirements.txt
docker-compose.yml
@@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
4 4
5 version: '2.0' 5 version: '2.0'
6 services: 6 services:
7 - com_goutenoir_apps_travel-footprint-calculator:  
8 - container_name: com_goutenoir_apps_travel-footprint-calculator 7 + travel_footprint_calculator:
  8 + container_name: travel_footprint_calculator
9 restart: always 9 restart: always
10 build: . 10 build: .
11 volumes: 11 volumes:
@@ -22,13 +22,12 @@ services: @@ -22,13 +22,12 @@ services:
22 LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com 22 LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com
23 LETSENCRYPT_EMAIL: antoine@goutenoir.com 23 LETSENCRYPT_EMAIL: antoine@goutenoir.com
24 VIRTUAL_HOST: travel-footprint-calculator.apps.goutenoir.com 24 VIRTUAL_HOST: travel-footprint-calculator.apps.goutenoir.com
25 - # 80 is the default port  
26 VIRTUAL_PORT: 80 25 VIRTUAL_PORT: 80
27 ################################################### 26 ###################################################
28 27
29 28
30 - com_goutenoir_apps_travel-footprint-calculator_mahcron:  
31 - container_name: com_goutenoir_apps_travel-footprint-calculator_mahcron 29 + travel_footprint_calculator_mahcron:
  30 + container_name: travel_footprint_calculator_mahcron
32 image: jsonfry/curl-cron 31 image: jsonfry/curl-cron
33 restart: always 32 restart: always
34 environment: 33 environment: