Skip to content

Commit

Permalink
Dynamic compose/mixpost pro (#6107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancelot-Enguerrand authored Dec 23, 2024
1 parent ce8e936 commit edd6931
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/mixpost-pro/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"port": 8191,
"available": true,
"exposable": true,
"dynamic_config": true,
"id": "mixpost-pro",
"tipi_version": 8,
"tipi_version": 9,
"version": "latest",
"categories": ["social", "utilities"],
"description": "Mixpost it's the coolest Self-hosted social media management software.",
Expand Down Expand Up @@ -42,5 +43,5 @@
],
"supported_architectures": ["arm64", "amd64"],
"created_at": 1691943801422,
"updated_at": 1723566283000
"updated_at": 1734908435396
}
66 changes: 66 additions & 0 deletions apps/mixpost-pro/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"services": [
{
"name": "mixpost-pro",
"image": "inovector/mixpost-pro-team:latest",
"isMain": true,
"internalPort": 80,
"environment": {
"APP_NAME": "Mixpost",
"LICENSE_KEY": "${MIXPOST_LICENSE_KEY}",
"APP_KEY": "${MIXPOST_APP_KEY}",
"APP_URL": "${APP_PROTOCOL:-http}://${APP_DOMAIN}",
"DB_HOST": "mixpost-pro-mysql",
"DB_DATABASE": "mixpost",
"DB_USERNAME": "tipi",
"DB_PASSWORD": "${MIXPOST_MYSQL_PASSWORD}",
"REDIS_HOST": "mixpost-pro-redis",
"REDIS_PASSWORD": "${MIXPOST_REDIS_PASSWORD}"
},
"dependsOn": ["mixpost-pro-mysql", "mixpost-pro-redis"],
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/mixpost-pro",
"containerPath": "/var/www/html/storage/app"
}
]
},
{
"name": "mixpost-pro-mysql",
"image": "mysql/mysql-server:8.0",
"environment": {
"MYSQL_ROOT_PASSWORD": "${MIXPOST_MYSQL_PASSWORD}",
"MYSQL_USER": "tipi",
"MYSQL_PASSWORD": "${MIXPOST_MYSQL_PASSWORD}",
"MYSQL_DATABASE": "mixpost"
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/mysql",
"containerPath": "/var/lib/mysql"
}
],
"healthCheck": {
"timeout": "5s",
"retries": 3,
"test": "mysqladmin ping -p ${MIXPOST_MYSQL_PASSWORD}"
}
},
{
"name": "mixpost-pro-redis",
"image": "redis:latest",
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/redis",
"containerPath": "/data"
}
],
"command": "redis-server --appendonly yes --replica-read-only no --requirepass ${MIXPOST_REDIS_PASSWORD}",
"healthCheck": {
"timeout": "5s",
"retries": 3,
"test": "redis-cli ping"
}
}
]
}

0 comments on commit edd6931

Please sign in to comment.