-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ version: '3' | |
|
||
services: | ||
flask: | ||
image: huwf/dictogloss:0.3 | ||
build: ./ | ||
ports: | ||
- 127.0.0.1:5000:5000 | ||
# - 127.0.0.1:5001:443 | ||
|
@@ -13,12 +13,17 @@ services: | |
VIRTUAL_PORT: 5000 | ||
# VIRTUAL_PROTO: https | ||
LETSENCRYPT_HOST: dictogloss.huwfryer.co.uk | ||
LETSENCRYPT_EMAIL: [email protected] | ||
LETSENCRYPT_EMAIL: ${DEFAULT_EMAIL} | ||
|
||
DEFAULT_EMAIL: ${DEFAULT_EMAIL} | ||
DEFAULT_PASSWORD: ${DEFAULT_PASSWORD} | ||
|
||
volumes: | ||
- ./letsencrypt:/etc/letsencrypt | ||
- ./config.py:/usr/src/config.py | ||
- mp3:/usr/src/static/mp3 | ||
|
||
- ./database.db:/usr/src/database.db | ||
- ./API_KEY.json:/usr/src/API_KEY.json | ||
# SEE: https://github.com/buchdag/letsencrypt-nginx-proxy-companion-compose/blob/master/2-containers/compose-v3/labels/docker-compose.yaml | ||
# For examples on how to set up the letsencrypt service | ||
nginx_proxy: | ||
|
@@ -52,7 +57,7 @@ services: | |
restart: always | ||
|
||
volumes: | ||
|
||
db: | ||
mp3: | ||
conf: | ||
vhost: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{% if error %} | ||
<div class="alert alert-danger"> | ||
<div class="alert alert-danger col-sm-10 float-right"> | ||
<strong class="d-block">Error code returned</strong> | ||
<p>There was an error retrieving the transcript. The details are:</p> | ||
<p>{{error}}</p> | ||
</div> | ||
{% else %} | ||
<div class="alert alert-success"> | ||
<div class="alert alert-success alert col-sm-10 float-right"> | ||
<strong class="d-block">Success!</strong> | ||
<p>The transcript for segment {{position}} was successfully retrieved. <a href="{{ url_for('solution', file_id=file_id, position=position) }}">View answer</a> </p> | ||
</div> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters