-
-
Notifications
You must be signed in to change notification settings - Fork 17
Installation
tech-kev edited this page Mar 25, 2026
·
2 revisions
services:
sharedmoments:
image: techkev/sharedmoments
container_name: sharedmoments
restart: unless-stopped
ports:
- "5001:5001"
volumes:
- sm-database:/app/app/database
- sm-uploads:/app/app/uploads
- /etc/localtime:/etc/localtime:ro
environment:
- SECRET_KEY=CHANGE-ME
volumes:
sm-database:
sm-uploads:python3 -c "import secrets; print(secrets.token_hex(32))"Replace CHANGE-ME with the generated key.
docker compose up -dOpen http://your-ip:5001 in your browser and complete the Setup Wizard.
See the full
docker-compose.ymlin the repository for all available options (AI, notifications, migration, etc.).
Supported on Debian/Ubuntu, Fedora/Rocky, and CentOS:
curl -fsSL https://raw.githubusercontent.com/tech-kev/SharedMoments/main/install.sh | sudo bashThe script installs all dependencies, sets up a Python virtual environment, and configures a systemd service.
Pull the latest image and restart:
docker compose pull && docker compose down && docker compose up -dDatabase migrations run automatically on startup.
Run the update script from your installation directory:
sudo bash /opt/sharedmoments/update.shThe update script will:
-
Create a backup of your configuration (
.env) and database - Stop the service
- Pull the latest code from the repository
- Update Python dependencies
- Run database migrations and restart the service
If something goes wrong, the script shows rollback instructions at the end, including how to restore your database and revert to the previous version.
Getting Started
Features
Upgrading