Compare commits
3 Commits
e422c11d94
...
90665f1491
Author | SHA1 | Date |
---|---|---|
simon | 90665f1491 | |
simon | 3173cb8359 | |
simon | 1c8faf712f |
|
@ -16,8 +16,7 @@ function sync_docker {
|
||||||
--exclude static/dyn \
|
--exclude static/dyn \
|
||||||
web "$remote_host":docker/
|
web "$remote_host":docker/
|
||||||
|
|
||||||
ssh "$remote_host" 'docker build -t bbilly1/lpb-air:latest docker/web'
|
ssh "$remote_host" 'docker compose -f docker/docker-compose.yml up -d --build'
|
||||||
ssh "$remote_host" 'docker compose -f docker/docker-compose.yml up -d'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,8 +35,7 @@ function sync_test {
|
||||||
--exclude static/dyn \
|
--exclude static/dyn \
|
||||||
web "$local_host":docker/
|
web "$local_host":docker/
|
||||||
|
|
||||||
ssh "$local_host" 'docker build -t bbilly1/lpb-air:latest docker/web'
|
ssh "$local_host" 'docker compose -f docker/docker-compose.yml up -d --build'
|
||||||
ssh "$local_host" 'docker compose -f docker/docker-compose.yml up -d'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ services:
|
||||||
nginx-proxy:
|
nginx-proxy:
|
||||||
image: nginxproxy/nginx-proxy
|
image: nginxproxy/nginx-proxy
|
||||||
container_name: nginx-proxy
|
container_name: nginx-proxy
|
||||||
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
@ -16,6 +17,7 @@ services:
|
||||||
nginx-proxy-acme:
|
nginx-proxy-acme:
|
||||||
image: nginxproxy/acme-companion
|
image: nginxproxy/acme-companion
|
||||||
container_name: nginx-proxy-acme
|
container_name: nginx-proxy-acme
|
||||||
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./volume/nginx-proxy/certs:/etc/nginx/certs
|
- ./volume/nginx-proxy/certs:/etc/nginx/certs
|
||||||
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
|
- ./volume/nginx-proxy/vhost:/etc/nginx/vhost.d
|
||||||
|
@ -26,7 +28,7 @@ services:
|
||||||
- NGINX_PROXY_CONTAINER=nginx-proxy
|
- NGINX_PROXY_CONTAINER=nginx-proxy
|
||||||
# backend flask
|
# backend flask
|
||||||
flask:
|
flask:
|
||||||
image: bbilly1/lpb-air
|
build: ./web
|
||||||
container_name: flask
|
container_name: flask
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -62,7 +64,7 @@ services:
|
||||||
- "5432"
|
- "5432"
|
||||||
# umami stats
|
# umami stats
|
||||||
umami:
|
umami:
|
||||||
image: ghcr.io/mikecao/umami:postgresql-latest
|
image: docker.umami.dev/umami-software/umami:postgresql-latest
|
||||||
container_name: umami
|
container_name: umami
|
||||||
expose:
|
expose:
|
||||||
- "3000"
|
- "3000"
|
||||||
|
|
|
@ -3,7 +3,7 @@ version: "3.2"
|
||||||
services:
|
services:
|
||||||
# backend flask
|
# backend flask
|
||||||
flask:
|
flask:
|
||||||
image: bbilly1/lpb-air
|
build: ./web
|
||||||
container_name: flask
|
container_name: flask
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -19,26 +19,28 @@ def get_config():
|
||||||
|
|
||||||
def plt_fill(plt, x, y):
|
def plt_fill(plt, x, y):
|
||||||
""" fill colors between break points """
|
""" fill colors between break points """
|
||||||
|
x_list = list(x)
|
||||||
|
y_list = list(y)
|
||||||
plt.fill_between(
|
plt.fill_between(
|
||||||
x, y, y2=0, where=(y > 0), color='#85a762', interpolate=True
|
x_list, y_list, y2=0, where=(y > 0), color='#85a762', interpolate=True
|
||||||
) # good
|
) # good
|
||||||
plt.fill_between(
|
plt.fill_between(
|
||||||
x, y, y2=50, where=(y > 50), color='#d4b93c', interpolate=True
|
x_list, y_list, y2=50, where=(y > 50), color='#d4b93c', interpolate=True
|
||||||
) # moderate
|
) # moderate
|
||||||
plt.fill_between(
|
plt.fill_between(
|
||||||
x, y, y2=100, where=(y > 100), color='#e96843', interpolate=True
|
x_list, y_list, y2=100, where=(y > 100), color='#e96843', interpolate=True
|
||||||
) # ufsg
|
) # ufsg
|
||||||
plt.fill_between(
|
plt.fill_between(
|
||||||
x, y, y2=150, where=(y > 150), color='#d03f3b', interpolate=True
|
x_list, y_list, y2=150, where=(y > 150), color='#d03f3b', interpolate=True
|
||||||
) # unhealthy
|
) # unhealthy
|
||||||
plt.fill_between(
|
plt.fill_between(
|
||||||
x, y, y2=200, where=(y > 200), color='#be4173', interpolate=True
|
x_list, y_list, y2=200, where=(y > 200), color='#be4173', interpolate=True
|
||||||
) # vunhealthy
|
) # vunhealthy
|
||||||
plt.fill_between(
|
plt.fill_between(
|
||||||
x, y, y2=300, where=(y > 300), color='#714261', interpolate=True
|
x_list, y_list, y2=300, where=(y > 300), color='#714261', interpolate=True
|
||||||
) # hazardous
|
) # hazardous
|
||||||
plt.fill_between(
|
plt.fill_between(
|
||||||
x, y, y2=0, where=(y > 0), color='#ffffff', alpha=0.1, interpolate=True
|
x_list, y_list, y2=0, where=(y > 0), color='#ffffff', alpha=0.1, interpolate=True
|
||||||
) # soft
|
) # soft
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue