mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
Add AdventureLog template with metadata and links (#304)
* Add AdventureLog template with metadata and links * Update PUBLIC_SERVER_URL to use backend_domain variable
This commit is contained in:
committed by
GitHub
parent
ee6d34f22d
commit
d9d5b980d0
17
blueprints/adventurelog/adventurelog.svg
Normal file
17
blueprints/adventurelog/adventurelog.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 7.9 KiB |
51
blueprints/adventurelog/docker-compose.yml
Normal file
51
blueprints/adventurelog/docker-compose.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- server
|
||||
environment:
|
||||
# Frontend needs to know where the backend is
|
||||
PUBLIC_SERVER_URL: ${PUBLIC_SERVER_URL}
|
||||
ORIGIN: ${ORIGIN}
|
||||
BODY_SIZE_LIMIT: ${BODY_SIZE_LIMIT}
|
||||
|
||||
db:
|
||||
image: postgis/postgis:16-3.5
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data/
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
|
||||
server:
|
||||
image: ghcr.io/seanmorley15/adventurelog-backend:latest
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
- adventurelog_media:/code/media/
|
||||
environment:
|
||||
# DB settings for Django
|
||||
PGHOST: ${PGHOST}
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
|
||||
# Django app settings
|
||||
SECRET_KEY: ${SECRET_KEY}
|
||||
DJANGO_ADMIN_USERNAME: ${DJANGO_ADMIN_USERNAME}
|
||||
DJANGO_ADMIN_PASSWORD: ${DJANGO_ADMIN_PASSWORD}
|
||||
DJANGO_ADMIN_EMAIL: ${DJANGO_ADMIN_EMAIL}
|
||||
DEBUG: ${DEBUG}
|
||||
CSRF_TRUSTED_ORIGINS: ${CSRF_TRUSTED_ORIGINS}
|
||||
FRONTEND_URL: ${FRONTEND_URL}
|
||||
PUBLIC_URL: ${PUBLIC_URL}
|
||||
|
||||
volumes:
|
||||
postgres_data: {}
|
||||
adventurelog_media: {}
|
||||
44
blueprints/adventurelog/template.toml
Normal file
44
blueprints/adventurelog/template.toml
Normal file
@@ -0,0 +1,44 @@
|
||||
[variables]
|
||||
frontend_domain = "${domain}"
|
||||
backend_domain = "${domain}"
|
||||
postgres_password = "${password:16}"
|
||||
secret_key = "${password:32}"
|
||||
admin_username = "admin"
|
||||
admin_password = "${password:12}"
|
||||
admin_email = "${email}"
|
||||
|
||||
[config]
|
||||
|
||||
# Frontend domain
|
||||
[[config.domains]]
|
||||
serviceName = "web"
|
||||
port = 3000
|
||||
host = "${frontend_domain}"
|
||||
|
||||
# Backend domain
|
||||
[[config.domains]]
|
||||
serviceName = "server"
|
||||
port = 80
|
||||
host = "${backend_domain}"
|
||||
|
||||
[config.env]
|
||||
# --- Postgres (values used by both db and server services)
|
||||
PGHOST = "db"
|
||||
POSTGRES_DB = "adventure"
|
||||
POSTGRES_USER = "adventure"
|
||||
POSTGRES_PASSWORD = "${postgres_password}"
|
||||
|
||||
# --- Django Backend
|
||||
SECRET_KEY = "${secret_key}"
|
||||
DJANGO_ADMIN_USERNAME = "${admin_username}"
|
||||
DJANGO_ADMIN_PASSWORD = "${admin_password}"
|
||||
DJANGO_ADMIN_EMAIL = "${admin_email}"
|
||||
DEBUG = "False"
|
||||
CSRF_TRUSTED_ORIGINS = "http://${backend_domain},http://${frontend_domain}"
|
||||
FRONTEND_URL = "http://${frontend_domain}"
|
||||
PUBLIC_URL = "http://${backend_domain}"
|
||||
|
||||
# --- Frontend
|
||||
PUBLIC_SERVER_URL = "${backend_domain}"
|
||||
ORIGIN = "http://${frontend_domain}"
|
||||
BODY_SIZE_LIMIT = "Infinity"
|
||||
19
meta.json
19
meta.json
@@ -85,6 +85,25 @@
|
||||
"postgresql"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "adventurelog",
|
||||
"name": "AdventureLog",
|
||||
"version": "latest",
|
||||
"description": "AdventureLog is an open-source activity tracker with maps, journaling, and Strava integration.",
|
||||
"logo": "adventurelog.svg",
|
||||
"links": {
|
||||
"github": "https://github.com/seanmorley15/adventurelog",
|
||||
"website": "https://adventurelog.app/",
|
||||
"docs": "https://adventurelog.app/docs/"
|
||||
},
|
||||
"tags": [
|
||||
"activity",
|
||||
"maps",
|
||||
"django",
|
||||
"react",
|
||||
"postgres"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "affinepro",
|
||||
"name": "Affine Pro",
|
||||
|
||||
Reference in New Issue
Block a user