Skip to content

Commit

Permalink
Add dynamic compose for mixpost (#6106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancelot-Enguerrand authored Dec 23, 2024
1 parent e147ab9 commit ce8e936
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/mixpost/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"port": 8167,
"available": true,
"exposable": true,
"dynamic_config": true,
"id": "mixpost",
"tipi_version": 14,
"tipi_version": 15,
"version": "1.7.2",
"categories": ["social"],
"description": "Mixpost it's the coolest Self-hosted social media management software.",
Expand Down Expand Up @@ -36,5 +37,5 @@
],
"supported_architectures": ["arm64", "amd64"],
"created_at": 1691943801422,
"updated_at": 1723905317000
"updated_at": 1734908431368
}
73 changes: 73 additions & 0 deletions apps/mixpost/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"services": [
{
"name": "mixpost",
"image": "inovector/mixpost:v1.7.2",
"isMain": true,
"internalPort": 80,
"environment": {
"APP_NAME": "'Mixpost'",
"APP_KEY": "'${MIXPOST_APP_KEY}'",
"APP_URL": "'${APP_PROTOCOL:-http}://${APP_DOMAIN}'",
"DB_HOST": "mixpost-mysql",
"DB_DATABASE": "mixpost",
"DB_USERNAME": "tipi",
"DB_PASSWORD": "${MIXPOST_MYSQL_PASSWORD}",
"REDIS_HOST": "mixpost-redis",
"REDIS_PASSWORD": "${MIXPOST_REDIS_PASSWORD}"
},
"dependsOn": ["mixpost-mysql", "mixpost-redis"],
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/mixpost-storage",
"containerPath": "/var/www/html/storage/app"
},
{
"hostPath": "${APP_DATA_DIR}/data/mixpost-logs",
"containerPath": "/var/www/html/storage/logs"
},
{
"hostPath": "${APP_DATA_DIR}/data/nginx/nginx.conf",
"containerPath": "/etc/nginx/sites-enabled/default"
}
]
},
{
"name": "mixpost-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-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 ce8e936

Please sign in to comment.