Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions blueprints/my-links/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: "3.8"
services:
my-links:
environment:
- APP_KEY
- APP_URL
- DB_PASSWORD
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=mylinks
- DB_DATABASE=mylinks
- HOST=0.0.0.0
- PORT=3333
- NODE_ENV=production
- LOG_LEVEL=info
restart: unless-stopped
image: sonny93/my-links:5.3.0
expose:
- 3333
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:3333/ >/dev/null || exit 1']
interval: 30s
retries: 3
start_period: 30s
timeout: 10s

postgres:
image: postgres:18-alpine
restart: unless-stopped
user: postgres
environment:
POSTGRES_USER: mylinks
POSTGRES_DB: mylinks
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 10s
timeout: 5s
retries: 5

volumes:
postgres-data:
13 changes: 13 additions & 0 deletions blueprints/my-links/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "my-links",
"name": "MyLinks",
"version": "5.3.0",
"description": "Self-hostable bookmark manager to organize, search and share your favorite links.",
"logo": "my-links.svg",
"links": {
"github": "https://github.com/my-links/my-links",
"website": "https://www.mylinks.app",
"docs": "https://docs.mylinks.app"
},
"tags": ["bookmarks", "link-sharing"]
}
5 changes: 5 additions & 0 deletions blueprints/my-links/my-links.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions blueprints/my-links/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[variables]
main_domain = "${domain}"
app_key = "${base64:32}"
db_password = "${password}"

[config]
mounts = []

[[config.domains]]
serviceName = "my-links"
port = 3_333
host = "${main_domain}"

[config.env]
APP_KEY = "${app_key}"
APP_URL = "http://${main_domain}"
DB_PASSWORD = "${db_password}"
Loading