Setting Up Linkstack with Docker Compose¶
Introduction to Linkstack¶
Linkstack is a web application that provides a user-friendly platform for managing and organizing web links. It is designed for ease of use and convenience in storing a collection of links.
Docker Compose Configuration for Linkstack¶
This Docker Compose setup deploys Linkstack in a Docker container, offering a dedicated environment for link management.
Docker Compose File (docker-compose.yml)¶
version: '3.8'
services:
linkstack:
image: linkstackorg/linkstack
container_name: linkstack
hostname: linkstack
environment:
#HTTP_SERVER_NAME: "www.example.xyz"
#HTTPS_SERVER_NAME: "www.example.xyz"
SERVER_ADMIN: "[email protected]"
TZ: "Pacific/Auckland"
PHP_MEMORY_LIMIT: "512M"
UPLOAD_MAX_FILESIZE: "8M"
ports:
- "8099:80"
- "8443:443"
restart: unless-stopped
volumes:
- "linkstack:/htdocs"
volumes:
linkstack:
Update the server admin email
Replace [email protected] with your own email address for server administration notifications.
Key Components of the Configuration¶
Service: Linkstack¶
- Image:
linkstackorg/linkstackis the Docker image used for Linkstack. - Environment Variables:
SERVER_ADMIN: Email address of the server administrator.TZ: Timezone set to "Pacific/Auckland".PHP_MEMORY_LIMIT: PHP memory limit set to "512M".UPLOAD_MAX_FILESIZE: Maximum file upload size set to "8M".HTTP_SERVER_NAMEandHTTPS_SERVER_NAMEare commented out and can be set as needed.- Ports:
8099:80maps HTTP traffic from port 8099 on the host to port 80 in the container.8443:443maps HTTPS traffic from port 8443 on the host to port 443 in the container.- Volumes:
linkstack:/htdocsprovides persistent storage for Linkstack's data.- Restart Policy:
unless-stoppedensures that Linkstack restarts automatically unless explicitly stopped.
Deploying Linkstack¶
- Save the Docker Compose configuration in a
docker-compose.ymlfile. - Run
docker compose up -dto start Linkstack in detached mode. - Access Linkstack's web interface via
http://<host-ip>:8099.
Configuring and Using Linkstack¶
Linkstack lets you create a shareable link-in-bio page. After first login:
- Go to Admin Panel → Profile to set your username and public URL
- Use the + Add Link button to add links to your page
- Share your page at
https://your-domain.com/@username
For custom domains, uncomment and set the HTTP_SERVER_NAME and HTTPS_SERVER_NAME environment variables in your compose file to your actual domain.
Youtube Video¶
Updating Linkstack¶
Back up before updating
Your data lives in the linkstack named Docker volume (mounted at /htdocs). Back this up before major version updates.
If there is an issue with this guide or you wish to suggest changes, please raise an issue on GitHub.