1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 05:05:17 +02:00

Merge pull request #245 from seanmorley15/development

Fix compose file image error
This commit is contained in:
Sean Morley 2024-08-18 13:38:46 -04:00 committed by GitHub
commit ad4c0b37b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 25 deletions

5
backup.sh Normal file
View file

@ -0,0 +1,5 @@
docker run --rm \
-v adventurelog_adventurelog_media:/backup-volume \
-v "$(pwd)":/backup \
busybox \
tar -zcvf /backup/adventurelog-backup.tar.gz /backup-volume

View file

@ -1,15 +1,15 @@
version: '3.9' version: "3.9"
services: services:
traefik: traefik:
image: traefik:v2.11 image: traefik:v2.11
command: command:
- "--api.insecure=true" # Enable Traefik dashboard (remove in production) - "--api.insecure=true" # Enable Traefik dashboard (remove in production)
- "--providers.docker=true" - "--providers.docker=true"
- "--entrypoints.web.address=:80" - "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443" - "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web" - "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.letsencrypt.acme.email=your-email@example.com" # Replace with your email - "--certificatesresolvers.letsencrypt.acme.email=your-email@example.com" # Replace with your email
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json" - "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
ports: ports:
- "80:80" - "80:80"
@ -26,12 +26,12 @@ services:
environment: environment:
POSTGRES_DB: database POSTGRES_DB: database
POSTGRES_USER: adventure POSTGRES_USER: adventure
POSTGRES_PASSWORD: your_postgres_password # Replace with the actual password POSTGRES_PASSWORD: your_postgres_password # Replace with the actual password
volumes: volumes:
- postgres-data:/var/lib/postgresql/data/ - postgres-data:/var/lib/postgresql/data/
web: web:
image: ghcr.io/seanmorley15/adventurelog-web:latest image: ghcr.io/seanmorley15/adventurelog-frontend:latest
restart: unless-stopped restart: unless-stopped
environment: environment:
PUBLIC_SERVER_URL: "http://server:8000" PUBLIC_SERVER_URL: "http://server:8000"
@ -39,7 +39,7 @@ services:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.adventurelog.entrypoints=websecure" - "traefik.http.routers.adventurelog.entrypoints=websecure"
- "traefik.http.routers.adventurelog.rule=Host(`yourdomain.com`) && !PathPrefix(`/media`)" # Replace with your domain - "traefik.http.routers.adventurelog.rule=Host(`yourdomain.com`) && !PathPrefix(`/media`)" # Replace with your domain
- "traefik.http.routers.adventurelog.tls=true" - "traefik.http.routers.adventurelog.tls=true"
- "traefik.http.routers.adventurelog.tls.certresolver=letsencrypt" - "traefik.http.routers.adventurelog.tls.certresolver=letsencrypt"
@ -49,7 +49,7 @@ services:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.nginx.entrypoints=websecure" - "traefik.http.routers.nginx.entrypoints=websecure"
- "traefik.http.routers.nginx.rule=Host(`yourdomain.com`) && PathPrefix(`/media`)" # Replace with your domain - "traefik.http.routers.nginx.rule=Host(`yourdomain.com`) && PathPrefix(`/media`)" # Replace with your domain
- "traefik.http.routers.nginx.tls=true" - "traefik.http.routers.nginx.tls=true"
- "traefik.http.routers.nginx.tls.certresolver=letsencrypt" - "traefik.http.routers.nginx.tls.certresolver=letsencrypt"
- "traefik.http.middlewares.nginx-stripprefix.stripprefix.prefixes=/media" - "traefik.http.middlewares.nginx-stripprefix.stripprefix.prefixes=/media"
@ -64,15 +64,15 @@ services:
PGHOST: "db" PGHOST: "db"
PGDATABASE: "database" PGDATABASE: "database"
PGUSER: "adventure" PGUSER: "adventure"
PGPASSWORD: your_postgres_password # Replace with the actual password PGPASSWORD: your_postgres_password # Replace with the actual password
SECRET_KEY: your_secret_key # Replace with the actual secret key SECRET_KEY: your_secret_key # Replace with the actual secret key
DJANGO_ADMIN_USERNAME: "admin" DJANGO_ADMIN_USERNAME: "admin"
DJANGO_ADMIN_PASSWORD: your_admin_password # Replace with the actual admin password DJANGO_ADMIN_PASSWORD: your_admin_password # Replace with the actual admin password
DJANGO_ADMIN_EMAIL: "adventurelog-admin@yourdomain.com" # Replace with your email DJANGO_ADMIN_EMAIL: "adventurelog-admin@yourdomain.com" # Replace with your email
PUBLIC_URL: "https://yourdomain.com" # Replace with your domain PUBLIC_URL: "https://yourdomain.com" # Replace with your domain
CSRF_TRUSTED_ORIGINS: "https://yourdomain.com" # Replace with your domain CSRF_TRUSTED_ORIGINS: "https://yourdomain.com" # Replace with your domain
DEBUG: "false" DEBUG: "false"
FRONTEND_URL: "https://yourdomain.com" # Replace with your domain FRONTEND_URL: "https://yourdomain.com" # Replace with your domain
volumes: volumes:
- adventurelog-media:/code/media - adventurelog-media:/code/media

View file

@ -96,8 +96,11 @@
</div> </div>
{:else} {:else}
<div class="card card-compact w-96 bg-base-100 shadow-xl p-6 mt-4 mb-4"> <div class="card card-compact w-96 bg-base-100 shadow-xl p-6 mt-4 mb-4">
<article class="text-center text-4xl font-extrabold"> <article class="text-center">
<h1>Signup is disabled for this server.</h1> <h1 class="text-4xl font-extrabold mb-6">Signup is disabled for this server.</h1>
<p>Please contact the server administrator if you think this is an error.</p>
<br />
<p>If you are the administrator, users can be registered via the admin site.</p>
</article> </article>
{#if errors.message} {#if errors.message}
@ -105,15 +108,6 @@
{errors.message} {errors.message}
</div> </div>
{/if} {/if}
<div class="flex justify-center mt-12 mr-25 ml-25">
<blockquote class="w-80 text-center text-lg break-words">
{#if quote != ''}
{quote}
{/if}
<!-- <footer class="text-sm">- Steve Jobs</footer> -->
</blockquote>
</div>
</div> </div>
{/if} {/if}
</div> </div>