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
Dockerfile
1   -#FROM python:2.7
2   -FROM tiangolo/uwsgi-nginx-flask:python2.7
  1 +FROM tiangolo/uwsgi-nginx-flask:python3.7
3 2 ADD . /app
4 3 WORKDIR /app
5 4 RUN pip install -r requirements.txt
... ...
docker-compose.yml
... ... @@ -4,8 +4,8 @@
4 4  
5 5 version: '2.0'
6 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 9 restart: always
10 10 build: .
11 11 volumes:
... ... @@ -22,13 +22,12 @@ services:
22 22 LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com
23 23 LETSENCRYPT_EMAIL: antoine@goutenoir.com
24 24 VIRTUAL_HOST: travel-footprint-calculator.apps.goutenoir.com
25   - # 80 is the default port
26 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 31 image: jsonfry/curl-cron
33 32 restart: always
34 33 environment:
... ...