Renamed services
Made configs and scripts consistent
This commit is contained in:
parent
225ef71518
commit
6028ac2d3c
@ -5,7 +5,7 @@ SECRET_KEY= # Long, secure, secret string.
|
|||||||
DATA=./data/
|
DATA=./data/
|
||||||
|
|
||||||
## Flask Mail Configuration
|
## Flask Mail Configuration
|
||||||
MAIL_SERVER=ref_test_postfix # Must match name of the Docker service
|
MAIL_SERVER=postfix # Must match name of the Docker service
|
||||||
MAIL_PORT=25
|
MAIL_PORT=25
|
||||||
MAIL_USE_TLS=False
|
MAIL_USE_TLS=False
|
||||||
MAIL_USE_SSL=False
|
MAIL_USE_SSL=False
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
ref_test_server:
|
nginx:
|
||||||
container_name: ref_test_server
|
container_name: ref_test_server
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
volumes:
|
volumes:
|
||||||
@ -21,7 +21,7 @@ services:
|
|||||||
- ref_test_app
|
- ref_test_app
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
|
|
||||||
ref_test_app:
|
app:
|
||||||
container_name: ref_test_app
|
container_name: ref_test_app
|
||||||
image: reftest
|
image: reftest
|
||||||
build: ./ref-test
|
build: ./ref-test
|
||||||
@ -38,7 +38,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- ref_test_postfix
|
- ref_test_postfix
|
||||||
|
|
||||||
ref_test_postfix:
|
postfix:
|
||||||
container_name: ref_test_postfix
|
container_name: ref_test_postfix
|
||||||
image: catatnight/postfix:latest
|
image: catatnight/postfix:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -49,7 +49,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
ref_test_certbot:
|
certbot:
|
||||||
container_name: ref_test_certbot
|
container_name: ref_test_certbot
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
upstream reftest {
|
upstream reftest {
|
||||||
server ref_test_app:5000;
|
server app:5000;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
@ -15,7 +15,7 @@ server {
|
|||||||
listen 443 ssl http2 default_server;
|
listen 443 ssl http2 default_server;
|
||||||
listen [::]:443 ssl http2 default_server;
|
listen [::]:443 ssl http2 default_server;
|
||||||
|
|
||||||
#SSL configuration
|
# SSL configuration
|
||||||
include /etc/nginx/ssl.conf;
|
include /etc/nginx/ssl.conf;
|
||||||
include /etc/nginx/certbot-challenge.conf;
|
include /etc/nginx/certbot-challenge.conf;
|
||||||
|
|
||||||
@ -33,4 +33,25 @@ server {
|
|||||||
include /etc/nginx/conf.d/common-location.conf;
|
include /etc/nginx/conf.d/common-location.conf;
|
||||||
proxy_pass http://reftest;
|
proxy_pass http://reftest;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
server_name www.domain_name;
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
# Redirect to non-www
|
||||||
|
return 301 $scheme://example.com$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
server_name www.domain_name;
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
|
# SSL configuration
|
||||||
|
include /etc/nginx/ssl.conf;
|
||||||
|
include /etc/nginx/certbot-challenge.conf;
|
||||||
|
|
||||||
|
# Redirect to non-www
|
||||||
|
return 301 $scheme://example.com$request_uri;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user