From 9c1e6f0e9415f661499bd6e56741e6699b6a2e5b Mon Sep 17 00:00:00 2001 From: Tanishq Dubey Date: Tue, 5 Nov 2024 19:25:52 -0500 Subject: [PATCH] More frontend changes, ready for deploy --- .gitignore | 1 + docker-compose.yml | 18 +++--------------- templates/admin.html | 1 + templates/admin_login.html | 1 + templates/config_history.html | 1 + templates/index.html | 1 + 6 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index e304d8d..b72b321 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ lib64 uploads/ thumbnails/ images/ +static/ config.toml __pycache__/ diff --git a/docker-compose.yml b/docker-compose.yml index ac623fd..b3af0c7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,33 +2,21 @@ version: '3.8' services: web: - build: . - labels: - - "traefik.enable=true" - - "traefik.http.routers.photos.rule=Host(`photos.dws.rip`)" - - "traefik.http.services.photos.loadbalancer.server.port=5000" - - "traefik.http.routers.photos.tls=true" - - "traefik.http.routers.photos.tls.certresolver=default" + image: git.dws.rip/dws/spectra:main volumes: - ./uploads:/app/uploads - ./thumbnails:/app/thumbnails - ./config.toml:/app/config.toml - ./photos.db:/app/photos.db + - ./static:/app/static environment: - PYTHONUNBUFFERED=1 - FLASK_ENV=production - WORKERS=4 restart: unless-stopped - networks: - - traefik-public - - default healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/"] interval: 30s timeout: 10s retries: 3 - start_period: 40s - -networks: - traefik-public: - external: true \ No newline at end of file + start_period: 40s \ No newline at end of file diff --git a/templates/admin.html b/templates/admin.html index b4f57be..739ddc0 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -7,6 +7,7 @@ +