103 lines
2.3 KiB
JSON
103 lines
2.3 KiB
JSON
{
|
|
"schemaVersion": 2,
|
|
"services": [
|
|
{
|
|
"name": "romm",
|
|
"image": "rommapp/romm:latest",
|
|
"environment": [
|
|
{
|
|
"key": "DB_HOST",
|
|
"value": "romm-db"
|
|
},
|
|
{
|
|
"key": "DB_NAME",
|
|
"value": "romm"
|
|
},
|
|
{
|
|
"key": "DB_USER",
|
|
"value": "romm-user"
|
|
},
|
|
{
|
|
"key": "HASHEOUS_API_ENABLED",
|
|
"value": "true"
|
|
}
|
|
],
|
|
"internalPort": 8080,
|
|
"volumes": [
|
|
{
|
|
"hostPath": "romm_resources",
|
|
"containerPath": "/romm/resources",
|
|
"readOnly": false,
|
|
"shared": false,
|
|
"private": false
|
|
},
|
|
{
|
|
"hostPath": "romm_redis_data",
|
|
"containerPath": "/redis-data",
|
|
"readOnly": false,
|
|
"shared": false,
|
|
"private": false
|
|
},
|
|
{
|
|
"hostPath": "/path/to/library",
|
|
"containerPath": "/romm/library",
|
|
"readOnly": false,
|
|
"shared": false,
|
|
"private": false
|
|
},
|
|
{
|
|
"hostPath": "/path/to/assets",
|
|
"containerPath": "/romm/assets",
|
|
"readOnly": false,
|
|
"shared": false,
|
|
"private": false
|
|
},
|
|
{
|
|
"hostPath": "/path/to/config",
|
|
"containerPath": "/romm/config",
|
|
"readOnly": false,
|
|
"shared": false,
|
|
"private": false
|
|
}
|
|
],
|
|
"dependsOn": {
|
|
"romm-db": {
|
|
"condition": "service_healthy",
|
|
"restart": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "romm-db",
|
|
"image": "mariadb:latest",
|
|
"environment": [
|
|
{
|
|
"key": "MARIADB_DATABASE",
|
|
"value": "romm"
|
|
},
|
|
{
|
|
"key": "MARIADB_USER",
|
|
"value": "romm-user"
|
|
}
|
|
],
|
|
"volumes": [
|
|
{
|
|
"hostPath": "mysql_data",
|
|
"containerPath": "/var/lib/mysql",
|
|
"readOnly": false,
|
|
"shared": false,
|
|
"private": false
|
|
}
|
|
],
|
|
"healthCheck": {
|
|
"test": "CMD healthcheck.sh --connect --innodb_initialized",
|
|
"interval": "10s",
|
|
"timeout": "5s",
|
|
"retries": 5,
|
|
"startPeriod": "30s",
|
|
"startInterval": "10s"
|
|
}
|
|
}
|
|
]
|
|
}
|