Last active
January 22, 2025 16:03
-
-
Save WisdomSky/f6d0db67dc8378941c8dcb7a436c1c74 to your computer and use it in GitHub Desktop.
Install MediaCMS in CasaOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Downloading MediaCMS into /DATA/AppData/mediacms..." | |
mkdir -p /DATA/AppData/mediacms | |
cd /DATA/AppData/mediacms | |
git clone https://github.com/mediacms-io/mediacms.git | |
cd mediacms | |
echo "Starting MediaCMS docker-compose.yml..." | |
curl -fsSL https://gist.githubusercontent.com/WisdomSky/f6d0db67dc8378941c8dcb7a436c1c74/raw/docker-compose.yaml > docker-compose.yaml | |
docker compose up -d | |
echo "Done." | |
echo "Wait for 3-5 minutes as MediaCMS is still initializing." | |
echo "URL: http://$(hostname -I | awk '{print $1}'):8085" | |
echo "Username: admin" | |
echo "Password: casaos" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
migrations: | |
image: mediacms/mediacms:latest | |
volumes: | |
- ./:/home/mediacms.io/mediacms/ | |
environment: | |
ENABLE_UWSGI: 'no' | |
ENABLE_NGINX: 'no' | |
ENABLE_CELERY_SHORT: 'no' | |
ENABLE_CELERY_LONG: 'no' | |
ENABLE_CELERY_BEAT: 'no' | |
ADMIN_USER: 'admin' | |
ADMIN_EMAIL: 'admin@localhost' | |
ADMIN_PASSWORD: 'casaos' | |
command: "./deploy/docker/prestart.sh" | |
restart: on-failure | |
depends_on: | |
redis: | |
condition: service_healthy | |
db: | |
condition: service_healthy | |
web: | |
image: mediacms/mediacms:latest | |
deploy: | |
replicas: 1 | |
ports: | |
- "8085:80" | |
volumes: | |
- ./:/home/mediacms.io/mediacms/ | |
environment: | |
ENABLE_CELERY_BEAT: 'no' | |
ENABLE_CELERY_SHORT: 'no' | |
ENABLE_CELERY_LONG: 'no' | |
ENABLE_MIGRATIONS: 'no' | |
depends_on: | |
- migrations | |
celery_beat: | |
image: mediacms/mediacms:latest | |
volumes: | |
- ./:/home/mediacms.io/mediacms/ | |
environment: | |
ENABLE_UWSGI: 'no' | |
ENABLE_NGINX: 'no' | |
ENABLE_CELERY_SHORT: 'no' | |
ENABLE_CELERY_LONG: 'no' | |
ENABLE_MIGRATIONS: 'no' | |
depends_on: | |
- redis | |
celery_worker: | |
image: mediacms/mediacms:latest | |
deploy: | |
replicas: 1 | |
volumes: | |
- ./:/home/mediacms.io/mediacms/ | |
environment: | |
ENABLE_UWSGI: 'no' | |
ENABLE_NGINX: 'no' | |
ENABLE_CELERY_BEAT: 'no' | |
ENABLE_MIGRATIONS: 'no' | |
depends_on: | |
- migrations | |
db: | |
image: postgres:15.2-alpine | |
volumes: | |
- ../postgres_data:/var/lib/postgresql/data/ | |
restart: always | |
environment: | |
POSTGRES_USER: mediacms | |
POSTGRES_PASSWORD: mediacms | |
POSTGRES_DB: mediacms | |
PUID: 1000 | |
PGID: 1000 | |
TZ: Europe/London | |
healthcheck: | |
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"] | |
interval: 10s | |
timeout: 5s | |
retries: 5 | |
redis: | |
image: "redis:alpine" | |
restart: always | |
healthcheck: | |
test: ["CMD", "redis-cli","ping"] | |
interval: 30s | |
timeout: 10s | |
retries: 3 | |
x-casaos: | |
architectures: | |
- amd64 | |
- arm64 | |
author: MediaCMS | |
category: MediaCMS | |
description: | |
en_us: "Modern, fully featured open source video and media CMS" | |
developer: MediaCMS | |
icon: https://github.com/mediacms-io/mediacms/blob/main/static/favicons/mstile-150x150.png?raw=true | |
main: web | |
project_url: https://mediacms.io/ | |
store_app_id: mediacms | |
tagline: | |
en_us: Modern, fully featured open source video and media CMS | |
thumbnail: https://github.com/mediacms-io/mediacms/blob/main/static/favicons/mstile-150x150.png?raw=true | |
title: | |
en_us: MediaCMS | |
scheme: http | |
index: / | |
port_map: "8085" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install MediaCMS into your machine running CasaOS, just run the following command: